blob: a8b8fb27c1926a15d588f422d0325f9d269fd33b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: sslh.sh,v 1.2 2015/07/19 16:49:41 nils Exp $
#
# PROVIDE: sslh
# REQUIRE: DAEMON
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="sslh"
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="@VARBASE@/run/${name}.pid"
command_args="-P ${pidfile}"
if [ -f @PKG_SYSCONFDIR@/sslh.cfg ]; then
command_args="${command_args} -F@PKG_SYSCONFDIR@/sslh.cfg"
fi
if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -f /etc/rc.d/DAEMON ]; then
load_rc_config $name
run_rc_command "$1"
else
echo -n " ${name}"
${command} ${command_args}
fi
|