aboutsummaryrefslogtreecommitdiff
path: root/audio/murmur/files/murmur.in
blob: e5a9c2565c175d9ab1a73d67ef06161cabc10f2e (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
27
28
29
30
31
32
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: murmur
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# murmur_enable (bool):		Set to NO by default.
#				Set it to YES to enable murmur.
#

. %%RC_SUBR%%

# Set some defaults
murmur_user=${murmur_user:-"murmur"}

name=murmur
rcvar=${name}_enable

command="%%PREFIX%%/sbin/murmurd"
command_args="-ini %%PREFIX%%/etc/murmur.ini"
pidfile="/var/run/murmur/murmur.pid"

load_rc_config $name

: ${murmur_enable="NO"}

run_rc_command "$1"