mirror of
https://git.freebsd.org/ports.git
synced 2026-06-02 11:08:52 +00:00
31 lines
408 B
Bash
31 lines
408 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: twochproxy
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=twochproxy
|
|
rcvar=${name}_enable
|
|
|
|
command=%%PREFIX%%/sbin/2chproxy.pl
|
|
start_cmd=${name}_start
|
|
stop_cmd=${name}_stop
|
|
load_rc_config $name
|
|
pidfile=/var/run/2chproxy.pid
|
|
: ${twochproxy_enable:=NO}
|
|
|
|
twochproxy_start()
|
|
{
|
|
|
|
$command --daemon
|
|
}
|
|
twochproxy_stop()
|
|
{
|
|
|
|
$command --kill && rm -f $pidfile
|
|
}
|
|
|
|
run_rc_command "$1"
|