diff options
Diffstat (limited to 'testing/noprs/noprs.initd')
-rw-r--r-- | testing/noprs/noprs.initd | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/testing/noprs/noprs.initd b/testing/noprs/noprs.initd deleted file mode 100644 index 3f3332f601..0000000000 --- a/testing/noprs/noprs.initd +++ /dev/null @@ -1,26 +0,0 @@ -#!/sbin/openrc-run - -name="$SVCNAME" -command="/usr/bin/noprs" -command_user="$SVCNAME" -command_args="$NOPRS_OPTS '$COMMENT_FILE'" -command_background="yes" -pidfile="/var/run/$SVCNAME.pid" -error_log="/var/log/noprs.log" - -depend() { - use net -} - -start_pre() { - [ -e "$COMMENT_FILE" ] || \ - eerror "File '$COMMENT_FILE' does not exist" - - export GITHUB_ACCESS_TOKEN GITHUB_WEBHOOK_SECRET - [ -z "$GITHUB_ACCESS_TOKEN" -o -z "$GITHUB_WEBHOOK_SECRET" ] && \ - eerror "Access token and/or webhook secret not configured." - - # Create log file for unprivileged user - checkpath --owner "${command_user}:${command_user}" \ - -f --mode 0644 "${error_log}" -} |