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.
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
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