aboutsummaryrefslogblamecommitdiffstats
path: root/community/sniproxy/sniproxy.initd
blob: 0fcb5acf1af547205837af2f36c5a64e67392c0e (plain) (tree)
1
2
3
4
5
6
7
8
9
                  
 
                                            

                                             
 


                      


         




                                                            

 
#!/sbin/openrc-run

pidfile="/var/run/${SVCNAME}/${SVCNAME}.pid"
command="/usr/sbin/${SVCNAME}"
: ${conf_file:="/etc/sniproxy/sniproxy.conf"}

depend() {
	need net
	after firewall
}

start() {
	ebegin "Starting $SVCNAME"
	start-stop-daemon --start \
		--quiet --pidfile $pidfile --exec $command \
		-- -c "$conf_file" "$@"
	eend
}