From 0af0753417e7e506da08650bda80804d0b50e660 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 30 Dec 2012 01:51:49 -0800 Subject: Sun Dec 30 01:50:38 PST 2012 --- community/murmur/murmur.install | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'community/murmur/murmur.install') diff --git a/community/murmur/murmur.install b/community/murmur/murmur.install index ecd116a82..562ec4171 100644 --- a/community/murmur/murmur.install +++ b/community/murmur/murmur.install @@ -1,7 +1,5 @@ post_install() { - # bug: dbus reload here doesn't work - # workaround: it seems to work if you do it a few seconds later, manually - /etc/rc.d/dbus reload > /dev/null + systemd-tmpfiles --create usr/lib/tmpfiles.d/murmur.conf getent group murmur > /dev/null || groupadd -r -g 86 murmur 1>/dev/null getent passwd murmur > /dev/null || useradd -r -u 86 -d /var/lib/murmur -g murmur -s /bin/false murmur 1>/dev/null @@ -9,23 +7,13 @@ post_install() { chown -R murmur:murmur /var/lib/murmur chown -R murmur:murmur /var/log/murmur - echo - echo '==> Set the SuperUser password with (as root):' - echo '==> murmurd -ini /etc/murmur.ini -supw PASSWORD' -} - -post_upgrade() { - post_install -} - -pre_remove() { - [ -f /var/run/daemons/murmur ] && /etc/rc.d/murmur stop > /dev/null - killall -u murmur -5 - sleep 1 + echo "You might have to reload dbus before launching murmur:" + echo " systemctl reload bus" + echo "Don't forget to set the superuser password:" + echo " murmurd -ini /etc/murmur.ini -supw " } post_remove() { - /etc/rc.d/dbus reload > /dev/null getent passwd murmur > /dev/null && userdel murmur 1>/dev/null getent group murmur > /dev/null && groupdel murmur 1>/dev/null } -- cgit v1.2.3-54-g00ecf