aboutsummaryrefslogtreecommitdiffstats
path: root/testing/prosody-filer/prosody-filer.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/prosody-filer/prosody-filer.initd')
-rw-r--r--testing/prosody-filer/prosody-filer.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/prosody-filer/prosody-filer.initd b/testing/prosody-filer/prosody-filer.initd
new file mode 100644
index 0000000000..5da0208f3b
--- /dev/null
+++ b/testing/prosody-filer/prosody-filer.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+
+name=$RC_SVCNAME
+command="/usr/bin/prosody-filer"
+command_args="-config ${PROSODY_FILER_CONF}"
+command_user="${PROSODY_FILER_USER}:${PROSODY_FILER_GROUP}"
+pidfile="/run/$RC_SVCNAME.pid"
+command_background=yes
+
+depend() {
+ need net
+}
+
+start_pre() {
+ if [ ! -e "${PROSODY_FILER_CONF}" ]; then
+ eerror "You must create a config file to run prosody-filer"
+ return 1
+ fi
+}