diff options
Diffstat (limited to 'net-voip/murmur/files')
-rw-r--r-- | net-voip/murmur/files/murmur.confd | 9 | ||||
-rw-r--r-- | net-voip/murmur/files/murmur.initd-r1 | 25 | ||||
-rw-r--r-- | net-voip/murmur/files/murmur.initd-r2 | 24 | ||||
-rw-r--r-- | net-voip/murmur/files/murmur.logrotate | 8 | ||||
-rw-r--r-- | net-voip/murmur/files/murmurd-dbus.tmpfiles | 1 |
5 files changed, 67 insertions, 0 deletions
diff --git a/net-voip/murmur/files/murmur.confd b/net-voip/murmur/files/murmur.confd new file mode 100644 index 000000000000..36367c51136b --- /dev/null +++ b/net-voip/murmur/files/murmur.confd @@ -0,0 +1,9 @@ +# where to look for the config file +MURMUR_CONF=/etc/murmur/murmur.ini + +# run as this user +MURMUR_USER=murmur + +# HOME directory of MURMUR_USER +MURMUR_HOME=/var/lib/murmur + diff --git a/net-voip/murmur/files/murmur.initd-r1 b/net-voip/murmur/files/murmur.initd-r1 new file mode 100644 index 000000000000..fe49b32f1410 --- /dev/null +++ b/net-voip/murmur/files/murmur.initd-r1 @@ -0,0 +1,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 $? +} + diff --git a/net-voip/murmur/files/murmur.initd-r2 b/net-voip/murmur/files/murmur.initd-r2 new file mode 100644 index 000000000000..b754c242462b --- /dev/null +++ b/net-voip/murmur/files/murmur.initd-r2 @@ -0,0 +1,24 @@ +#!/sbin/openrc-run + +pidfile="/run/murmur/murmur.pid" +command="/usr/bin/mumble-server" +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 $? +} diff --git a/net-voip/murmur/files/murmur.logrotate b/net-voip/murmur/files/murmur.logrotate new file mode 100644 index 000000000000..a82cb1a336c4 --- /dev/null +++ b/net-voip/murmur/files/murmur.logrotate @@ -0,0 +1,8 @@ +/var/log/murmur/*.log { + missingok + notifempty + sharedscripts + postrotate + test -r /run/murmur/murmur.pid && kill -HUP $(cat /run/murmur/murmur.pid) &>/dev/null + endscript +} diff --git a/net-voip/murmur/files/murmurd-dbus.tmpfiles b/net-voip/murmur/files/murmurd-dbus.tmpfiles new file mode 100644 index 000000000000..70963d0a575b --- /dev/null +++ b/net-voip/murmur/files/murmurd-dbus.tmpfiles @@ -0,0 +1 @@ +d /run/murmur 0755 murmur murmur |