Sophie

Sophie

distrib > Fedora > 17 > i386 > media > updates > by-pkgid > 5165ba2acdfb53dd81496be5af70ffd5 > scriptlet

haproxy-1.4.24-1.fc17.i686.rpm

PREIN

/bin/sh
/usr/sbin/useradd -c "HAProxy user" -s /bin/false -r -d /var/lib/haproxy haproxy 2>/dev/null || :

PREUN

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

POSTIN

/bin/sh
/sbin/chkconfig --add haproxy

POSTUN

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