summaryrefslogtreecommitdiffstats
path: root/main/uvncrepeater/uvncrepeater.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/uvncrepeater/uvncrepeater.initd')
-rw-r--r--main/uvncrepeater/uvncrepeater.initd32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/uvncrepeater/uvncrepeater.initd b/main/uvncrepeater/uvncrepeater.initd
new file mode 100644
index 00000000..655ade92
--- /dev/null
+++ b/main/uvncrepeater/uvncrepeater.initd
@@ -0,0 +1,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 $?
+}
+