summaryrefslogtreecommitdiff
path: root/community/murmur/murmur.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-30 01:51:49 -0800
committerroot <root@rshg054.dnsready.net>2012-12-30 01:51:49 -0800
commit0af0753417e7e506da08650bda80804d0b50e660 (patch)
tree4814fa023ba4251a5145e424ddde872252cf3adc /community/murmur/murmur.install
parent5dd7ed82e788ebad2e920e0f2db7468cc6547cfe (diff)
Sun Dec 30 01:50:38 PST 2012
Diffstat (limited to 'community/murmur/murmur.install')
-rw-r--r--community/murmur/murmur.install22
1 files changed, 5 insertions, 17 deletions
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 <your-password>"
}
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
}