aboutsummaryrefslogtreecommitdiffstats
path: root/main/vino/vino.initd
diff options
context:
space:
mode:
authorAlan Lacerda <alacerda@alpinelinux.org>2015-02-10 12:16:23 +0000
committerBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2015-02-10 13:38:21 +0100
commit3d9d67de5345a741b4dbfa49ad857e22153e7685 (patch)
tree3d9bcb765bf359f5f470f10ed84682ec9d3f1204 /main/vino/vino.initd
parent2140f80c078bb79fe30c9c59a4edfebfdba15490 (diff)
downloadaports-3d9d67de5345a741b4dbfa49ad857e22153e7685.tar.bz2
aports-3d9d67de5345a741b4dbfa49ad857e22153e7685.tar.xz
testing/vino: moved to main
Diffstat (limited to 'main/vino/vino.initd')
-rw-r--r--main/vino/vino.initd26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/vino/vino.initd b/main/vino/vino.initd
new file mode 100644
index 0000000000..46819d4164
--- /dev/null
+++ b/main/vino/vino.initd
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+
+command=/usr/libexec/vino-server
+
+depend() {
+ need net
+ after firewall
+}
+
+start () {
+ ebegin "Starting vino-server"
+ export DISPLAY=:0.0
+ start-stop-daemon \
+ --background \
+ --start \
+ --exec $command
+ eend $?
+}
+
+stop () {
+ ebegin "Stopping vino-server"
+ start-stop-daemon \
+ --stop \
+ --exec $command
+ eend $?
+}