blob: dc9461f434839c71f985b6b9ee6cf0d2243df601 (
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
|
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: pianod
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable this service:
#
# pianod_enable (bool): Set to NO by default.
# Set it to YES to enable pianod.
# pianod_args (string): Additional arguments to pianod
#
. /etc/rc.subr
name=pianod
rcvar=pianod_enable
: ${pianod_enable:="NO"}
: ${pianod_args:=""}
pidfile=/var/run/pianod.pid
procname="%%PREFIX%%/bin/pianod"
command="/usr/sbin/daemon"
command_args="-f -p ${pidfile} ${procname} ${pianod_args}"
load_rc_config ${name}
run_rc_command "$1"
|