3 # drizzle A Lightweight SQL Database for Cloud and Web
5 # chkconfig: 2345 84 16
7 # description: A Microkernel DBMS for High Performance Scale-Out Applications
9 # processname: drizzled
10 # config: /etc/drizzle/drizzled.conf
11 # pidfile: /var/lib/drizzle/drizzle.pid
15 # Source function library
16 . /etc/rc.d/init.d/functions
19 . /etc/sysconfig/network
21 # Get service config - may override defaults
22 [ -f /etc/sysconfig/drizzle ] && . /etc/sysconfig/drizzle
24 # Check that networking is up.
25 if is_yes "${NETWORKING}"; then
26 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
27 msg_network_down "Drizzle Server"
35 # Check if the service is already running?
36 if [ ! -f /var/lock/subsys/drizzle ]; then
37 msg_starting "Drizzle Server"
38 daemon --fork /usr/sbin/drizzled --defaults-file=/etc/drizzle/drizzled.conf
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/drizzle
42 msg_already_running "Drizzle Server"
47 if [ -f /var/lock/subsys/drizzle ]; then
49 msg_stopping "Drizzle Server"
50 /sbin/start-stop-daemon -q --stop \
51 --retry TERM/600/KILL/10 \
52 -s TERM --pidfile /var/lib/drizzle/drizzle.pid
54 if [ "$result" -eq 0 ]; then
60 rm -f /var/lock/subsys/drizzle
62 msg_not_running "Drizzle Server"
67 if [ -f /var/lock/subsys/drizzle ]; then
71 msg_not_running "Drizzle Server"
77 # See how we were called.
100 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"