aboutsummaryrefslogblamecommitdiffstats
path: root/unmaintained/proftpd/proftpd.initd
blob: c20a2543a1b429e027fd6809df8e3f57e6ab73fb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                        











                                                          
#!/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 \
			--exec ${daemon} -- ${sample_opts}
	eend $?
}

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