summaryrefslogtreecommitdiff
path: root/etc/rc.d/amd
blob: 82b3634d517b69ca6c1d810349991fd5df8dbe21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# $OpenBSD: amd,v 1.4 2011/08/22 08:02:04 nicm Exp $

daemon="/usr/sbin/amd"

. /etc/rc.d/rc.subr

rc_reload=NO
rc_restart=NO
rc_stop=NO

rc_pre() {
	[ -e ${amd_master} ] || return 1
	daemon_flags=$(print -rn -- $(< ${amd_master}))
}

rc_start() {
	${rcexec} "cd /etc/amd; ${daemon} ${daemon_flags}"
}

rc_cmd $1