summaryrefslogtreecommitdiffstats
path: root/comms/ser2net/files/ser2net.in
blob: 7d6e3cdaa7fe95a8624a77782bfae5a2b884cf94 (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
#!/bin/sh
#
# $FreeBSD$
#

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

# Add the following lines to /etc/rc.conf to enable ser2net:
# ser2net_enable="YES"
# ser2net_flags="<set as needed>"

. /etc/rc.subr

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

load_rc_config $name
: ${ser2net_enable="NO"}
: ${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"
OpenPOWER on IntegriCloud