PREIN
/bin/sh
getent group dmapd >/dev/null || groupadd -r dmapd
getent passwd dmapd >/dev/null || useradd -r -g dmapd -d / -s /sbin/nologin -c "dmapd Daemon" dmapd
exit 0
PREUN
/bin/sh
if [ $1 -eq 0 ] ; then
/bin/systemctl --no-reload disable dmapd.service > /dev/null 2>&1 || :
/bin/systemctl stop dmapd.service > /dev/null 2>&1 || :
fi
POSTIN
/bin/sh
/sbin/ldconfig
if [ $1 -eq 1 ] ; then
/bin/systemctl enable dmapd.service >/dev/null 2>&1 || :
fi
POSTUN
/bin/sh
/sbin/ldconfig
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
/bin/systemctl try-restart dmapd.service >/dev/null 2>&1 || :
fi
# FIXME: Remove once Fedora 15 EOL'ed.
# See http://fedoraproject.org/wiki/Packaging:ScriptletSnippets
Triggers
dmapd <
0.0.37-2
/bin/sh
/usr/bin/systemd-sysv-convert --save dmapd >/dev/null 2>&1 || :
/bin/systemctl --no-reload enable dmapd.service >/dev/null 2>&1 || :
/sbin/chkconfig --del dmapd >/dev/null 2>&1 || :
/bin/systemctl try-restart dmapd.service >/dev/null 2>&1 || :