aboutsummaryrefslogtreecommitdiffstats
path: root/comms/ser2net/files/ser2net.in
blob: b722015fc4a9d241f896f2e3a723e89cbf1208f8 (plain) (blame)
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
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: ser2net
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown

. %%RC_SUBR%%

name="ser2net"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/ser2net"

load_rc_config $name
: ${ser2net_enable="NO"}
: ${ser2net_flags=""}
: ${ser2net_pidfile="/var/run/ser2net.pid"}

start_cmd="/usr/sbin/daemon -p ${ser2net_pidfile} $command $rc_flags $command_args"
stop_postcmd="rm -f /var/lock/subsys/ser2net"

run_rc_command "$1"