aboutsummaryrefslogtreecommitdiffstats
path: root/community/fcron/fcron.initd
blob: 2b0fd899316a77cf938691ffb6f15bc9430770a7 (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
#!/sbin/openrc-run

# Initscript by Diaz Devera Victor <vitronic2@gmail.com>
# Copyright 2014 Alpine Linux
# Distributed under the terms of the GNU General Public License v2

#name="advanced periodic command scheduler fcron"
name="fcron"
pidfile="/run/fcron"
command=/usr/sbin/fcron

depend() {
	need localmount
	need logger
}

start() {
	ebegin "Starting  $name"
	start-stop-daemon --start --exec ${command} \
		--pidfile "$pidfile.pid"
	eend $?
}

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