aboutsummaryrefslogtreecommitdiffstats
path: root/main/vino/vino.initd
blob: 46819d416414b8afb30dcb8edc7dd9bf71dff417 (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/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 $?
}