blob: 7e63b409a0ccc50828fe039b648ace821f7a1620 (
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
|
#!/bin/sh
# PROVIDE: sems
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable this service
# at system startup:
#
# sems_enable (bool): Set to NO by default.
# Set it to YES to enable sems.
#
. /etc/rc.subr
name=sems
rcvar=sems_enable
load_rc_config ${name}
: ${sems_enable:=NO}
: ${sems_config:=%%PREFIX%%/etc/sems/sems.conf}
command="%%PREFIX%%/sbin/sems"
pidfile=/var/run/sems/sems.pid
start_precmd="sems_precmd"
sems_precmd()
{
install -d -o sems /var/run/sems
}
command_args="-P $pidfile -f $sems_config -u sems -g sems"
run_rc_command $1
|