Moray Henderson (ICT) wrote: >> From: Dennis Peterson [mailto:[email protected]] >> >> Such scripts are rather easily constructed using a basic template:
<snippage> >> >> Additional lines of code can be added to verify the star or stop actually >> happened but generally the above is often enough. >> >> dp > > These days (at least in the Fedora/RedHat/CentOS world) the template init > script should also contain a "condrestart" option, which checks whether the > process is supposed to be running (usually by checking something like > /var/run/clamav/clamd.pid), and runs stop/start if so. This is a template. It is incomplete for any specific purpose. If it were real code I would have included an invoice. dp _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml
