diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2011-03-31 07:31:58 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2011-03-31 07:32:11 +0000 |
commit | 0726c1cd1435a289a8dbc470ca04b7586aa10830 (patch) | |
tree | b124c4445b8386f3d74ec3746c2db8162a503537 /main/vlc/vlc.initd | |
parent | a2b318ddf1ff0c31d5b9617fdadce552a0d125d1 (diff) | |
download | aports-0726c1cd1435a289a8dbc470ca04b7586aa10830.tar.bz2 aports-0726c1cd1435a289a8dbc470ca04b7586aa10830.tar.xz |
main/vlc: vlc-daemon subpkg created
Diffstat (limited to 'main/vlc/vlc.initd')
-rwxr-xr-x | main/vlc/vlc.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/vlc/vlc.initd b/main/vlc/vlc.initd new file mode 100755 index 0000000000..2c431c90f0 --- /dev/null +++ b/main/vlc/vlc.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting VLC" + start-stop-daemon --start --oknodo \ + --pidfile /var/run/vlc.pid --chuid vlc \ + --exec /usr/bin/vlc -- ${VLC_OPTS} + eend $? +} + +stop () { + ebegin "Stopping VLC" + start-stop-daemon --stop --oknodo --exec /usr/bin/vlc + eend $? +} + |