mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
0c58bf30ac
into the old .dat format. - Update japanese/navi2ch to use japanese/p5-2chproxy as an HTTP server by default.
33 lines
423 B
Bash
33 lines
423 B
Bash
#!/bin/sh
|
|
#
|
|
# PROVIDE: twochproxy
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
#
|
|
# $FreeBSD$
|
|
|
|
. /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"
|