blob: 5da0208f3b8b4ca9f2c81b54852192f077f725f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}
|