blob: 53c6c28da255c7df394339a973a5d4f96450fc35 (
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
33
|
#!/bin/sh
# PROVIDE: amuled
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable amuled at startup
# amuled (bool): Set to "NO" by default.
# Set it to "YES" to enable amuled
# amuled_user (str): Set to user running amuled
# (default 'aMule')
# amuled_config (str): Set to home directory of user running amuled
# (default /home/${amuled_user})
. /etc/rc.subr
name="amuled"
rcvar=amuled_enable
load_rc_config $name
: ${amuled_enable="NO"}
: ${amuled_user:="amule"}
: ${amuled_config:="/home/${amuled_user}/.aMule"}
pidfile="${amuled_config}/amuled.pid"
procname="/usr/local/bin/amuled"
required_files="${amuled_config}/amule.conf"
command="/usr/sbin/daemon"
command_args="-f -p ${pidfile} ${procname} --config-dir=${amuled_config}"
run_rc_command "$1"
|