blob: fe49b32f1410df1a4638c1ec1615eec38e127797 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/sbin/openrc-run
pidfile="/run/murmur/murmur.pid"
command="/usr/bin/murmurd"
command_args="-ini \"${MURMUR_CONF}\""
start_stop_daemon_args="-u \"${MURMUR_USER}\" --env HOME=\"${MURMUR_HOME}\" --wait 20"
extra_started_commands="reload"
depend() {
need localmount net
use dbus logger
after bootmisc mysql
}
start_pre() {
checkpath -q -d -o ${MURMUR_USER} ${pidfile%/*}
}
reload() {
ebegin "Reloading Murmur"
start-stop-daemon --signal HUP --pidfile "${pidfile}" \
--exec ${command}
eend $?
}
|