PREIN
/bin/sh
getent group vscan >/dev/null || groupadd -r vscan
getent passwd vscan >/dev/null || \
useradd -r -g vscan -d /var/spool/vscan -s /sbin/nologin -c "SAGATOR" vscan
exit 0
PREUN
/bin/sh
if [ $1 = 0 ]; then # uninstall
# stop service
/etc/rc.d/init.d/sagator stop >/dev/null 2>&1
# remove init script symlinks
if [ -x /sbin/chkconfig ]; then
chkconfig --del sagator
elif [ -x /sbin/insserv ]; then
insserv -r sagator
fi
fi
POSTIN
/bin/sh
touch /var/lib/sagator-mkchroot
if [ $1 = 2 ]; then # upgrade
[ -f /etc/sysconfig/sagator ] && . /etc/sysconfig/sagator || true
# update configuration
/usr/share/sagator/updatecfg.py || true
if [ "$RESTART" = "auto" ]; then
# restart sagator
/etc/rc.d/init.d/sagator try-restart >/dev/null 2>&1 || true
fi
else # install
if [ -x /sbin/chkconfig ]; then
chkconfig --add sagator
elif [ -x /sbin/insserv ]; then
insserv sagator
fi
fi
Triggers
sagator-webq
/bin/sh
touch /var/lib/sagator-mkchroot
glibc
/bin/sh
touch /var/lib/sagator-mkchroot
libgcc
/bin/sh
touch /var/lib/sagator-mkchroot
expat
/bin/sh
touch /var/lib/sagator-mkchroot
libstdc++
/bin/sh
touch /var/lib/sagator-mkchroot
zlib
/bin/sh
touch /var/lib/sagator-mkchroot
bzip2-libs
/bin/sh
touch /var/lib/sagator-mkchroot
cracklib
/bin/sh
touch /var/lib/sagator-mkchroot
cracklib-dicts
/bin/sh
touch /var/lib/sagator-mkchroot
tar
/bin/sh
touch /var/lib/sagator-mkchroot
arc
/bin/sh
touch /var/lib/sagator-mkchroot
unace
/bin/sh
touch /var/lib/sagator-mkchroot
unrar
/bin/sh
touch /var/lib/sagator-mkchroot
rar
/bin/sh
touch /var/lib/sagator-mkchroot
zoo
/bin/sh
touch /var/lib/sagator-mkchroot
unarj
/bin/sh
touch /var/lib/sagator-mkchroot
arj
/bin/sh
touch /var/lib/sagator-mkchroot
unzip
/bin/sh
touch /var/lib/sagator-mkchroot
zip
/bin/sh
touch /var/lib/sagator-mkchroot
gzip
/bin/sh
touch /var/lib/sagator-mkchroot
bzip2
/bin/sh
touch /var/lib/sagator-mkchroot
clamav
/bin/sh
touch /var/lib/sagator-mkchroot
clamav-libs
/bin/sh
touch /var/lib/sagator-mkchroot
avglinux
/bin/sh
touch /var/lib/sagator-mkchroot
nod32ls
/bin/sh
touch /var/lib/sagator-mkchroot
nod32lfs
/bin/sh
touch /var/lib/sagator-mkchroot
kav4mailservers-linux
/bin/sh
touch /var/lib/sagator-mkchroot
bogofilter
/bin/sh
touch /var/lib/sagator-mkchroot
qsf
/bin/sh
touch /var/lib/sagator-mkchroot
sagator-webq
/bin/sh
touch /var/lib/sagator-mkchroot
glibc
/bin/sh
touch /var/lib/sagator-mkchroot
libgcc
/bin/sh
touch /var/lib/sagator-mkchroot
expat
/bin/sh
touch /var/lib/sagator-mkchroot
libstdc++
/bin/sh
touch /var/lib/sagator-mkchroot
zlib
/bin/sh
touch /var/lib/sagator-mkchroot
bzip2-libs
/bin/sh
touch /var/lib/sagator-mkchroot
cracklib
/bin/sh
touch /var/lib/sagator-mkchroot
cracklib-dicts
/bin/sh
touch /var/lib/sagator-mkchroot
tar
/bin/sh
touch /var/lib/sagator-mkchroot
arc
/bin/sh
touch /var/lib/sagator-mkchroot
unace
/bin/sh
touch /var/lib/sagator-mkchroot
unrar
/bin/sh
touch /var/lib/sagator-mkchroot
rar
/bin/sh
touch /var/lib/sagator-mkchroot
zoo
/bin/sh
touch /var/lib/sagator-mkchroot
unarj
/bin/sh
touch /var/lib/sagator-mkchroot
arj
/bin/sh
touch /var/lib/sagator-mkchroot
unzip
/bin/sh
touch /var/lib/sagator-mkchroot
zip
/bin/sh
touch /var/lib/sagator-mkchroot
gzip
/bin/sh
touch /var/lib/sagator-mkchroot
bzip2
/bin/sh
touch /var/lib/sagator-mkchroot
clamav
/bin/sh
touch /var/lib/sagator-mkchroot
clamav-libs
/bin/sh
touch /var/lib/sagator-mkchroot
avglinux
/bin/sh
touch /var/lib/sagator-mkchroot
nod32ls
/bin/sh
touch /var/lib/sagator-mkchroot
nod32lfs
/bin/sh
touch /var/lib/sagator-mkchroot
kav4mailservers-linux
/bin/sh
touch /var/lib/sagator-mkchroot
bogofilter
/bin/sh
touch /var/lib/sagator-mkchroot
qsf
/bin/sh
touch /var/lib/sagator-mkchroot