wok view cherokee/stuff/cherokee @ rev 23721

updated urbackup-client (2.3.4 -> 2.4.10)
author Hans-G?nter Theisgen
date Thu Apr 30 14:15:36 2020 +0100 (2020-04-30)
parents 60564f86c380
children
line source
1 #!/bin/sh
2 # /etc/init.d/cherokee: Start, stop and restart Cherokee web server on SliTaz,
3 # at boot time or with the command line. Daemons options are configured
4 # with /etc/daemons.conf
5 #
6 . /etc/init.d/rc.functions
7 . /etc/daemons.conf
9 NAME=Cherokee
10 DESC="$(_ 'Cherokee Web Server')"
11 DAEMON=/usr/sbin/cherokee
12 OPTIONS=
13 PIDFILE=/var/run/cherokee.pid
15 case "$1" in
16 start)
17 if active_pidfile $PIDFILE cherokee ; then
18 _ '%s is already running.' $NAME
19 exit 1
20 fi
21 action 'Starting %s: %s...' "$DESC" $NAME
22 $DAEMON $OPTIONS -d &>/dev/null
23 status
24 ;;
25 stop)
26 if ! active_pidfile $PIDFILE cherokee ; then
27 _ '%s is not running.' $NAME
28 exit 1
29 fi
30 action 'Stopping %s: %s...' "$DESC" $NAME
31 kill $(cat $PIDFILE)
32 status
33 ;;
34 restart)
35 if ! active_pidfile $PIDFILE cherokee ; then
36 _ '%s is not running.' $NAME
37 exit 1
38 fi
39 action 'Restarting %s: %s...' "$DESC" $NAME
40 kill $(cat $PIDFILE)
41 rm $PIDFILE
42 sleep 2
43 $DAEMON $OPTIONS -d &>/dev/null
44 status
45 ;;
46 *)
47 emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]"
48 newline
49 exit 1
50 ;;
51 esac
53 exit 0