diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-03-18 20:29:56 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-03-18 20:29:56 -0500 |
commit | 6074fa94890e02956055826f43e9abd720f4767d (patch) | |
tree | 04a135bd79bc53ecc475f0cc4116011881503f9c /pcr/openrc-base/dbus.install | |
parent | 27d7c91f4cbfc3e774be535855ba4b7427aa623b (diff) |
openrc-devel-20160318-1: updating version
Diffstat (limited to 'pcr/openrc-base/dbus.install')
-rw-r--r-- | pcr/openrc-base/dbus.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pcr/openrc-base/dbus.install b/pcr/openrc-base/dbus.install new file mode 100644 index 000000000..4b8f8e634 --- /dev/null +++ b/pcr/openrc-base/dbus.install @@ -0,0 +1,21 @@ +_svc="dbus" +_rlvl="default" + +post_install() { + _cmd="rc-update add ${_svc} ${_rlvl}" + echo " ==> run '${_cmd}'" +} + +post_upgrade() { + post_install "$1" + # Make sure new rc script can shutdown running dbus + if [ -f run/dbus.pid -a -d run/dbus ]; then + mv run/dbus.pid run/dbus/pid + fi +} + +post_remove() { + _cmd="rc-update del ${_svc} ${_rlvl}" + echo " ==> run '${_cmd}'" +} + |