summaryrefslogblamecommitdiff
path: root/system/at/atd.initd
blob: 733e5d04dd0c0f321701caf3665cadb1fd72a4a5 (plain) (tree)


























                                                              
#!/sbin/openrc-run

# init.d file for atd (command scheduling daemon)

command="/usr/sbin/$SVCNAME"
pidfile="/var/run/$SVCNAME.pid"

depend() {
	after localmount
}

start() {
	ebegin "Starting command scheduling daemon ${SVCNAME}"
		start-stop-daemon --start --quiet \
			--pidfile ${pidfile} \
			--exec ${command}
	eend $?
}

stop() {
	ebegin "Stopping command scheduling daemon ${name}"
		start-stop-daemon --stop --quiet \
			--pidfile ${pidfile} \
			--exec ${command}
	eend $?
}