blob: 67ca34e19817b7482d73b14db2cd2b99519ec7ed (
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
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: anytermd
# REQUIRE: NETWORKING DAEMON LOGIN cleanvar devfs
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable anytermd:
#
# anytermd_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable anytermd.
#
# anytermd_flags (str): Set to "-c /usr/bin/login -u nobody --local-only"
# by default. See anytermd(1) for flags.
#
# anytermd_name (str): Set to "anyterm" by default.
#
. /etc/rc.subr
name=anytermd
rcvar=anytermd_enable
load_rc_config $name
# Set defaults
: ${anytermd_enable:="NO"}
: ${anytermd_flags:="-c /usr/bin/login -u nobody --local-only"}
: ${anytermd_name:="anyterm"}
pidfile=/var/run/$anytermd_name.pid
command=%%PREFIX%%/sbin/$name
command_args="$anytermd_flags --name $anytermd_name"
run_rc_command "$1"
|