summaryrefslogtreecommitdiff
path: root/pypaste-initd
blob: 52c449dcf8bab1149880e1e96d767c5edc3411a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/sbin/openrc-run

depend() {
    need net
}

supervisor=supervise-daemon
command="/usr/bin/pypaste"
command_args="
	--site=${PYPASTE_SITE}
	--content-length-max-bytes=${PYPASTE_CONTENT_LENGTH_MAX_BYTES}
	--endpoint=${PYPASTE_ENDPOINT}
	--region=${PYPASTE_REGION}
	--bucket=${PYPASTE_BUCKET}
	--access-key=${PYPASTE_ACCESS_KEY}
	--secret-key=${PYPASTE_SECRET_KEY}
	--s3-max-bytes=${PYPASTE_S3_MAX_BYTES}
	--default-style=${PYPASTE_DEFAULT_STYLE}
	--key-length=${PYPASTE_KEY_LENGTH}
	--dictionary=${PYPASTE_DICTIONARY}
	--database=${PYPASTE_DATABASE}
        --default-style=${PYPASTE_STYLE}
	${PYPASTE_ARGS}
"

error_log="${PYPASTE_ERROR_LOG}"

: "${command_user=pypaste:pypaste}"