diff options
author | Chris Buechler <cmb@pfsense.org> | 2011-01-25 05:20:28 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2011-01-25 05:21:06 -0500 |
commit | 7af18d10dc23084ae8390241c2e9951d530248f7 (patch) | |
tree | bba85a3958c7c11a8ce0bc8d6b0addad3a24c2f1 /config/dspam/pkg/010.clamav-clamd.sh | |
parent | dc3d5f22067dd659e4e8bd407e0745f78769fc85 (diff) | |
download | pfsense-packages-7af18d10dc23084ae8390241c2e9951d530248f7.tar.gz pfsense-packages-7af18d10dc23084ae8390241c2e9951d530248f7.tar.bz2 pfsense-packages-7af18d10dc23084ae8390241c2e9951d530248f7.zip |
archive some more dead packages
Diffstat (limited to 'config/dspam/pkg/010.clamav-clamd.sh')
-rw-r--r-- | config/dspam/pkg/010.clamav-clamd.sh | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/config/dspam/pkg/010.clamav-clamd.sh b/config/dspam/pkg/010.clamav-clamd.sh deleted file mode 100644 index aeb23b04..00000000 --- a/config/dspam/pkg/010.clamav-clamd.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh -# This file was automatically generated -# by the pfSense service handler - -rc_start() { -test_clamav_group=`cat /etc/group | grep clam` -test_clamav_user=`cat /etc/passwd | grep clam` - -if [ -z "${test_clamav_group}" ]; then - pw groupadd clamav -g 106 -fi - -if [ -z "${test_clamav_user}" ]; then - pw useradd clamav -u 106 -g 106 -d /nonexistent -s /sbin/nologin -c 'Clam Antivirus' -fi - -if [ ! -d "/usr/local/share/clamav" ]; then - mkdir /usr/local/share/clamav && chown clamav:clamav /usr/local/share/clamav -fi - -if [ ! -d "/var/log/clamav" ]; then - mkdir /var/log/clamav && chown clamav:clamav /var/log/clamav -fi - -if [ ! -d "/var/run/clamav" ]; then - mkdir /var/run/clamav && chown clamav:clamav /var/run/clamav -fi - - /sbin/mount_fdescfs fdescfs /dev/fd - /usr/local/sbin/clamd -} - -rc_stop() { - /usr/bin/killall clamd - sleep 2 -} - -rc_restart() { - rc_stop - rc_start -} - -case $1 in - start) - rc_start - ;; - stop) - rc_stop - ;; - restart) - rc_restart - ;; - *) - echo "Usage: $0 <start|stop|restart>" - ;; -esac |