diff options
| -rw-r--r-- | pypaste-confd | 16 | ||||
| -rw-r--r-- | pypaste-initd | 39 |
2 files changed, 0 insertions, 55 deletions
diff --git a/pypaste-confd b/pypaste-confd deleted file mode 100644 index cc4d691..0000000 --- a/pypaste-confd +++ /dev/null @@ -1,16 +0,0 @@ -# /etc/conf.d/pypaste - -PYPASTE_SITE="" -PYPASTE_CONTENT_LENGTH_MAX_BYTES="2000000" # 2M -PYPASTE_STORAGE_MAX_BYTES="10000000000" # 10G -PYPASTE_DICTIONARY="/usr/share/dict/eff_large_wordlist.txt" -PYPASTE_KEY_LENGTH="3" -PYPASTE_DATABASE="/var/lib/pypaste/pastes.sqlite" -PYPASTE_SOCKET_DIR="/run/pypaste" -PYPASTE_SOCKET_NAME="pypaste.sock" -PYPASTE_LOG_FILE="/var/log/pypaste.log" -PYPASTE_DEFAULT_STYLE="native" -PYPASTE_ARGS=" - --line-numbers - sqlite -" diff --git a/pypaste-initd b/pypaste-initd deleted file mode 100644 index 4f5e399..0000000 --- a/pypaste-initd +++ /dev/null @@ -1,39 +0,0 @@ -#!/sbin/openrc-run - -depend() { - need net -} - -supervisor=supervise-daemon - -command="python" - -command_args=" - -m - pypaste.server - --site=${PYPASTE_SITE} - --content-length-max-bytes=${PYPASTE_CONTENT_LENGTH_MAX_BYTES} - --storage-max-bytes=${PYPASTE_STORAGE_MAX_BYTES} - --default-style=${PYPASTE_DEFAULT_STYLE} - --key-length=${PYPASTE_KEY_LENGTH} - --dictionary=${PYPASTE_DICTIONARY} - --database=${PYPASTE_DATABASE} - --default-style=${PYPASTE_STYLE} - --socket=${PYPASTE_SOCKET_DIR}/${PYPASTE_SOCKET_NAME} - --socket-mode=0666 - --default-style=${PYPASTE_DEFAULT_STYLE} - ${PYPASTE_ARGS} -" - -error_log="${PYPASTE_LOG_FILE}" - -: "${command_user=pypaste:pypaste}" - -start_pre() { - touch ${PYPASTE_LOG_FILE} || return $? - chown pypaste:pypaste ${PYPASTE_LOG_FILE} || return $? - mkdir -p ${PYPASTE_SOCKET_DIR} || return $? - setfacl -m 'u:pypaste:rwx' ${PYPASTE_SOCKET_DIR} || return $? - setfacl -m 'u:lighttpd:rwx' ${PYPASTE_SOCKET_DIR} || return $? - rm -f ${PYPASTE_SOCKET_DIR}/${PYPASTE_SOCKET_NAME} -} |
