updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / ajenti-git / initscript
blob41b945600c361d9be45531da89a34e4212215a77
1 #!/bin/sh
3 ### BEGIN INIT INFO
4 # Provides: ajenti
5 # Required-Start: $network $syslog
6 # Required-Stop: $network $syslog
7 # Should-Start: $local_fs
8 # Should-Stop: $local_fs
9 # Default-Start: 2 3 4 5
10 # Default-Stop: 1
11 # Short-Description: Ajenti
12 # Description: Ajenti administration frontend
13 ### END INIT INFO
15 PATH=/sbin:/bin:/usr/sbin:/usr/bin
17 . /etc/rc.conf
18 . /etc/rc.d/functions
20 NAME=ajenti
21 DESC="Ajenti"
22 PID=/var/run/ajenti.pid
24 case "$1" in
25 start)
26 #log_daemon_msg "Starting $DESC"
27 stat_busy "Starting $DESC daemon"
28 /usr/bin/ajenti --start
29 #log_end_msg $?
30 stat_done
32 stop)
33 #log_daemon_msg "Stopping $DESC"
34 stat_busy "Stopping $DESC daemon"
35 /usr/bin/ajenti --stop
36 #log_end_msg $?
37 stat_done
39 restart)
40 $0 stop
41 sleep 1
42 $0 start
43 if [ "$?" != "0" ]; then
44 exit 1
48 echo "Usage: $0 {start|stop|restart}"
49 exit 1
50 esac
52 exit 0