diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-21 10:11:58 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-21 10:11:58 +0000 |
commit | 110ed65ec53ccfb6ab5e9acd55b4318bb90cb19e (patch) | |
tree | 0d808918ff6fca664d3e4ff61a0ffabe7f851cc7 /main/uvncrepeater/uvncrepeater.initd | |
parent | 6c5d758798572eadb08e582e6d35c5677bed5319 (diff) | |
download | aports-110ed65ec53ccfb6ab5e9acd55b4318bb90cb19e.tar.bz2 aports-110ed65ec53ccfb6ab5e9acd55b4318bb90cb19e.tar.xz |
main/uvncrepeater: moved from testing
Diffstat (limited to 'main/uvncrepeater/uvncrepeater.initd')
-rw-r--r-- | main/uvncrepeater/uvncrepeater.initd | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/main/uvncrepeater/uvncrepeater.initd b/main/uvncrepeater/uvncrepeater.initd new file mode 100644 index 0000000000..655ade9240 --- /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 $? +} + |