blob: d7e62fb4ed53752817c147b614c9e13428d66dc4 (
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
26
|
#!/bin/sh
#
# PROVIDE: mpdscribble
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable mpdscribble:
#
#mpdscribble_enable="YES"
. /etc/rc.subr
name=mpdscribble
rcvar=mpdscribble_enable
command=%%PREFIX%%/bin/mpdscribble
load_rc_config $name
: ${mpdscribble_enable="NO"}
: ${mpdscribble_user="nobody"}
command_args="--daemon-user ${mpdscribble_user}"
run_rc_command "$1"
|