On Mon, Apr 20, 2015 at 11:44:59AM +0000, C.L. Martinez wrote: > Hi all, > > I have created a custom rc.d script to launch sslsplit at startup and stop > it at shutdown. Start option works without problems, but this script doesn't > stop process. > > Here it is: > > #!/bin/sh -x > # > > > daemon="/usr/local/bin/sslsplit" > > . /etc/rc.d/rc.subr > > rc_reload=NO > > rc_cmd $1 > > Options in rc.conf.local are: > > sslsplit_flags="-d -Z -l /var/log/sslsplit -S /tmp -k > /root/configs/sslsplit/ca.key -p /var/run/sslsplit.pid -c > /root/configs/sslsplit/ca.crt -u proxy ssl 127.0.0.1 8443"
You need a pexp variable that patches the process table. > + pexp=/usr/local/bin/sslsplit -d -Z -l /var/log/sslsplit -S /tmp -k > /root/configs/sslsplit/ca.key -p /var/run/sslsplit.pid -c > /root/configs/sslsplit/ca.crt -u proxy ssl 127.0.0.1 8443 versus > 17658 ?? Ss 0:04.65 /usr/local/bin/sslsplit -d -Z -l /var/log/sslsplit > -S /tmp -k /root/configs/sslsplit/ca.key -p /var/run/sslsplit.pid -c -- Antoine