diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-12-07 11:02:07 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-12-07 11:02:07 -0300 |
commit | 8a3d4ee5105eefa2136eb7ae83e69d01f29864c3 (patch) | |
tree | 8be9a06d3b2d8cade4b5dba48e040c632bd33850 /community/ucarp/ucarp.rc | |
parent | 404b7ff94ece6bb2ce0e9df042ac1fe798137c83 (diff) | |
parent | d1d87d2ac643e3dabc251f3cec7d3b00e29b282c (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community/zathura/PKGBUILD
extra/gnome-desktop-sharp/PKGBUILD
extra/gnome-python-desktop/PKGBUILD
extra/libdvdread/PKGBUILD
extra/mjpegtools/PKGBUILD
extra/postgresql/PKGBUILD
Diffstat (limited to 'community/ucarp/ucarp.rc')
-rw-r--r-- | community/ucarp/ucarp.rc | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/community/ucarp/ucarp.rc b/community/ucarp/ucarp.rc new file mode 100644 index 000000000..33f40268f --- /dev/null +++ b/community/ucarp/ucarp.rc @@ -0,0 +1,34 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions +. /etc/conf.d/${0##*/} + +NAME=ucarp +DAEMON=/usr/sbin/ucarp +PID=$(pidof -o %PPID $DAEMON) + +case "$1" in + start) + stat_busy "Starting $NAME daemon" + [[ ! $PID ]] && $DAEMON $DAEMON_OPTS && add_daemon $NAME && stat_done && exit 0 + stat_fail + ;; + stop) + stat_busy "Stopping $NAME daemon" + [[ $PID ]] && kill $PID &> /dev/null && rm_daemon $NAME && stat_done && exit 0 + stat_fail + ;; + restart) + $0 stop + $0 start + exit 0 + ;; + *) + echo "usage: ${0##*/} {start|stop|restart}" >&2 + ;; +esac + +exit 1 + +# vim:set ts=2 sw=2 ft=sh noet: |