aboutsummaryrefslogblamecommitdiffstats
path: root/community/at/atd.initd
blob: 733e5d04dd0c0f321701caf3665cadb1fd72a4a5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                  
                                                 
 

                               





                        
                                                              
                                                   

                                              



               
                                                           
                                                  

                                              


               
#!/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 $?
}