updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / ferm / rc.d
blob88d554b54dde69b0561aa7c77d6960761633c915
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 FERM="/usr/sbin/ferm"
8 [ -f /etc/conf.d/ferm ] && . /etc/conf.d/ferm
10 case "$1" in
11 start)
12 stat_busy "Starting ferm"
13 $FERM $FERM_ARGS $FERM_CONFIG
14 if [ $? -gt 0 ]; then
15 stat_fail
16 else
17 add_daemon ferm
18 stat_done
21 stop)
22 stat_busy "Stopping ferm"
23 $FERM -F $FERM_ARGS $FERM_CONFIG
24 if [ $? -gt 0 ]; then
25 stat_fail
26 else
27 rm_daemon ferm
28 stat_done
31 restart)
32 $0 stop
33 $0 start
36 echo "usage: $0 {start|stop|restart}"
37 esac
38 exit 0
40 # vim:set ts=2 sw=2 ft=sh et: