Re: amavisd rc.d script

2011-11-24 Thread Stuart Henderson
On 2011-11-22, Tim Howe th...@bendtel.net wrote: pid=/var/amavisd/amavisd.pid .. rc_check() { /bin/ps -p `cat ${pid}` | /usr/bin/grep `cat ${pid}` } The rc.d system on OpenBSD does not use pid files.

Re: amavisd rc.d script

2011-11-23 Thread Giovanni Bechis
On 11/22/11 19:05, Tim Howe wrote: The rc.d script that comes with amavisd-new was unable to stop the server for me. Is seems pkill/pgrep does not recognize the pexp expression, so the check sub tells it it isn't running and the stop sub isn't run. I was able to make it work with the

amavisd rc.d script

2011-11-22 Thread Tim Howe
The rc.d script that comes with amavisd-new was unable to stop the server for me. Is seems pkill/pgrep does not recognize the pexp expression, so the check sub tells it it isn't running and the stop sub isn't run. I was able to make it work with the following: #!/bin/sh