Fixed it by deleting /var/run/rc.d/pmacctd 

G

On 13/03/2019 11:24, Kapetanakis Giannis wrote:
> Hi,
> 
> I'm trying to create a rc file for pmacctd. I've defined the pexp var but for 
> some reason it is not working.
> I'm probably missing something not obvious to me.
> 
> #!/bin/sh
> #
> 
> daemon="/usr/local/sbin/pmacctd"
> 
> . /etc/rc.d/rc.subr
> 
> pexp="pmacctd: Core Process.*"
> 
> rc_reload=NO
> 
> rc_cmd $1
> 
> pexp seems fine to me:
> 
> # pgrep -xf "pmacctd: Core Process.*"
> 9005
> 
> # ps -x|grep pmac
>  9005 ??  Rs/1    1:19.15 pmacctd: Core Process [default] (pmacctd)
> 16732 ??  R/3     1:29.26 pmacctd: Netflow Probe Plugin [default_nfprobe] 
> (pmacctd)
> 
> # cat /var/run/rc.d/pmacctd 
> daemon_class=daemon
> daemon_flags=-f /etc/pmacct/pmacctd.conf
> daemon_rtable=0
> daemon_timeout=30
> daemon_user=root
> pexp=/usr/local/sbin/pmacctd -f /etc/pmacct/pmacctd.conf
> 
> thanks for any input,
> 
> G
> 
> 
> 

Reply via email to