On Wed, 2011-07-20 at 07:41 -0400, Genes MailLists wrote: > On 07/20/2011 06:17 AM, Arthur Dent wrote: > > > > > There are no other "rm" commands. > > > > So what deletes the /var/run/clamd.clamd/ directory on reboot? > > > > > I wonder if you should look for what should be creating it instead - > because of the fact that /run = /var/run is now tmpfs. > > gene
Good point.
Well I attach the whole of the init script to this email in case anyone
can see any problems - but the key parts are:
CLAMD_PIDFILE=/var/run/clamd.${CLAMD_SERVICE}/clamd.pid
and
start () {
echo -n $"Starting $prog: "
daemon --pidfile=${CLAMD_PIDFILE} \
exec -a $procname /usr/sbin/clamd \
${CLAMD_CONFIGFILE:+-c $CLAMD_CONFIGFILE} ${CLAMD_OPTIONS} --pid
${CLAMD_PIDFILE}
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $lockfile
return $RETVAL
}
Should I put a "touch $PIDFILE" in there? Or would I also need a mkdir
command?
This is a Fedora yum package. Shouldn't this just work?
Thanks for your help so far...
Mark
signature.asc
Description: This is a digitally signed message part
-- users mailing list [email protected] To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
