aboutsummaryrefslogtreecommitdiffstats
path: root/main/vino/vino.initd
blob: bfff0868ebbbe0161af8a2fb74841587a4180b2c (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
#!/sbin/openrc-run

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 $?
}