aboutsummaryrefslogtreecommitdiffstats
path: root/main/uvncrepeater/uvncrepeater.initd
blob: 266c1ec61f04aa44f80d3ca036553252f66a8794 (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
30
31
32
#!/sbin/openrc-run

# Sample init.d file for alpine linux.

name=repeater
daemon=/usr/bin/$name

depend() {
	need net
	after firewall
}

start() {
	ebegin "Starting VNC ${name}"
		start-stop-daemon --start --quiet \
			--pidfile /var/run/${name}.pid \
			--make-pidfile --background \
			--wait ${uvncrepeater_wait:-500} \
			--stderr ${uvncrepeater_logfile:-/dev/null} \
			--stdout /dev/null \
			--exec ${daemon} -- /etc/uvncrepeater.ini
	eend $?
}

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