summaryrefslogtreecommitdiff
path: root/net-mgmt/netdisco/files/netdisco.in
blob: ce8bdbdb41f1346932ee906a9ecda0cab5acf266 (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
34
35
36
37
38
39
40
41
42
#!/bin/sh
# 
# PROVIDE: netdisco
# REQUIRE: DAEMON
# BEFORE:  LOGIN

. %%RC_SUBR%%

name="netdisco"
rcvar=`set_rcvar`

load_rc_config $name

: ${netdisco_enable="NO"}
: ${netdisco_user="netdisco"}
: ${netdisco_group="netdisco"}

start_cmd=${name}_start
stop_cmd=${name}_stop
restart_cmd=${name}_restart
status_cmd=${name}_status

command="%%PREFIX%%/bin/netdisco"
required_files="%%PREFIX%%/etc/netdisco.conf"

netdisco_start() {
	$command -p start
}

netdisco_stop() {
	$command -p stop
}

netdisco_restart() {
	$command -p restart
}

netdisco_status() {
	$command -p status
}

run_rc_command "$1"