Sophie

Sophie

distrib > Fedora > 17 > i386 > media > updates > by-pkgid > 992b7e37c247eabb132df715378c2fff > scriptlet

ladvd-1.0.4-1.fc17.i686.rpm

PREIN

/bin/sh
/usr/sbin/fedora-groupadd 47 -r ladvd &>/dev/null || :
/usr/sbin/fedora-useradd  47 -r -s /sbin/nologin -d /var/run/ladvd -M          \
-c 'CDP/LLDP sender for UNIX' -g ladvd ladvd &>/dev/null || :

PREUN

/bin/sh
if [ $1 = 0 ]; then
        /sbin/service ladvd stop >/dev/null 2>&1
        /sbin/chkconfig --del ladvd
fi

POSTIN

/bin/sh
/bin/systemd-tmpfiles --create /usr/lib/../lib/tmpfiles.d/ladvd.conf
/bin/systemctl daemon-reload >/dev/null 2>&1 || :

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
        /sbin/service ladvd condrestart >/dev/null 2>&1
fi
:  ladvd &>/dev/null || :
: ladvd &>/dev/null || :

Triggers

ladvd < 0.9.2-2

/bin/sh
if /sbin/chkconfig --level 3 ladvd ; then
        /bin/systemctl enable ladvd.service >/dev/null 2>&1 || :
fi