blob: 30aae779c1a59edeeffb4fdf7efbafc07a0427e3 (
plain)
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/runscript
# Sample init.d file for alpine linux.
name=proftpd
daemon=/usr/sbin/proftpd
depend() {
need net
after firewall
}
start() {
ebegin "Starting ${name}"
start-stop-daemon --start --quiet \
--pidfile /var/run/${name}.pid \
--chuid ${sample_user}:${sample_group} \
--exec ${daemon} -- ${sample_opts}
eend $?
}
stop() {
ebegin "Stopping ${name}"
start-stop-daemon --stop --quiet \
--pidfile /var/run/$name.pid \
--exec ${daemon}
eend $?
}
|