gcc: add old versions
[openadk.git] / package / jack / files / jack.init
blob53a81ac07cf72713c5dcf41fdcb51369818c5aa9
1 #!/bin/sh
2 #PKG jack
3 #INIT 78
4 . /etc/rc.conf
6 case $1 in
7 autostop) ;;
8 autostart)
9 test x"${jack:-NO}" = x"NO" && exit 0
10 test x"$jack" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
11 exec sh $0 start
13 start)
14 (/usr/bin/jackd $jack_flags &) && sleep 0.1
16 stop)
17 kill $(pgrep -f /usr/bin/jackd ) && sleep 0.1
19 restart)
20 sh $0 stop
21 sh $0 start
24 echo "Usage: $0 {start | stop | restart}"
25 exit 1
27 esac
28 exit $?