Daryl C. W. O wrote: > > geist_ wrote: >> >> >> Daryl C. W. O wrote: >>> Are you using the -r or --pidfile option to get spamd to create a >>> pidfile? >>> >>> Daryl >>> >>> >> >> here is my /etc/default/spamassassin file : >> >> ENABLED=1 >> OPTIONS="--create-prefs --helper-home-dir -v -m 10 -u vpopmail >> --nouser-config" >> PIDFILE="/var/run/spamd.pid" >> >> and i use /etc/init.d/spamassassin to start/stop it... >> > > I don't see -r or --pidfile in the OPTIONS string so you'll have to > check to see if your /etc/init.d/spamassassin script adds it for you. > > Daryl > > It looks like it does... #! /bin/sh # Spamd init script # June 2002 # Duncan Findlay # Based on skeleton by Miquel van Smoorenburg and Ian Murdock PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/spamd NAME=spamd SNAME=spamassassin DESC="SpamAssassin Mail Filter Daemon" PIDFILE="/var/run/$NAME.pid" PNAME="spamd" export TMPDIR=/tmp # Apparently people have trouble if this isn't explicitly set... # Defaults - don't touch, edit /etc/default/spamassassin ENABLED=0 OPTIONS="" NICE= test -f /etc/default/spamassassin && . /etc/default/spamassassin DOPTIONS="-d --pidfile=$PIDFILE" if [ "$ENABLED" = "0" ]; then echo "$DESC: disabled, see /etc/default/spamassassin" exit 0 fi test -f $DAEMON || exit 0 set -e case "$1" in start) echo -n "Starting $DESC: " start-stop-daemon --start --pidfile $PIDFILE --name $PNAME \ $NICE --oknodo --startas $DAEMON -- $OPTIONS $DOPTIONS echo "$NAME." ;; stop) echo -n "Stopping $DESC: " start-stop-daemon --stop --pidfile $PIDFILE --name $PNAME --oknodo echo "$NAME." ;; reload|force-reload) echo -n "Reloading $DESC: " start-stop-daemon --stop --pidfile $PIDFILE --signal HUP --name $PNAME echo "$NAME." ;; restart) echo -n "Restarting $DESC: " start-stop-daemon --stop --pidfile $PIDFILE --name $PNAME \ --retry 5 --oknodo start-stop-daemon --start --pidfile $PIDFILE --name $PNAME \ $NICE --oknodo --startas $DAEMON -- $OPTIONS $DOPTIONS echo "$NAME." ;; *) N=/etc/init.d/$SNAME echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac exit 0 -- View this message in context: http://www.nabble.com/Problems-with-the-PIDFILE-tf3670916.html#a10269322 Sent from the SpamAssassin - Users mailing list archive at Nabble.com.