Re: rc script problem with pgrep / pkill

2014-07-03 Thread Craig R. Skinner
On 2014-07-02 Wed 11:18 AM |, Leclerc, Sebastien wrote: > > $ pgrep -f "^tarpitd: \[priv\]" > 22014 > > But a check or stop doesn't: > > $ sudo /etc/rc.d/tarpitd -d check ; echo $? > doing rc_read_runfile > doing rc_check > 1 > Show the output of: $ cat /etc/rc.d/tarpitd; \ ls -l /var/run/rc.d

rc script problem with pgrep / pkill

2014-07-02 Thread Leclerc, Sebastien
Hi, I have a problem with a rc script, when I try to check or stop the service. It is very similar to the spamd rc script (with no rc_pre() and rc_start()): $ grep -C2 pexp /etc/rc.d/{spamd,tarpitd} /etc/rc.d/spamd-. /etc/rc.d/rc.subr /etc/rc.d/spamd- /etc/rc.d/spamd:pexp="spamd: \[priv\]" /etc/