blob: 655ade92406b5d48c03e4eb9a3a990b74cfc238d (
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/runscript
# 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 $?
}
|