summaryrefslogtreecommitdiff
path: root/pypaste-initd
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-10-04 00:40:09 -0400
committerJohn Turner <jturner.usa@gmail.com>2025-10-04 00:40:09 -0400
commite0215dd545b714139842679deec1bea3a67ab0e9 (patch)
tree2c518e22150a5adf81f577eea81dbfd1c406be1f /pypaste-initd
parente35e0e72d8bb0c017a7b5f3001baf9bdd135e505 (diff)
downloadpypaste-e0215dd545b714139842679deec1bea3a67ab0e9.tar.gz
remove confd and initd files
Diffstat (limited to 'pypaste-initd')
-rw-r--r--pypaste-initd39
1 files changed, 0 insertions, 39 deletions
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}
-}