#!/bin/sh # chkconfig: 235 99 00 # description: Start or stop the miniserv administration server ### BEGIN INIT INFO # Provides: drakxtools_http # Required-Start: # Required-Stop: # Should-Start: $network # Default-Start: 3 4 5 # Default-Stop: 0 1 2 6 # Short-Description: Web administration server for Mageia utilities # Description: Start or stop the miniserv administration server for Mageia utilities ### END INIT INFO # Source function library. . /etc/rc.d/init.d/functions subsys=/var/lock/subsys/drakxtools_http name=drakxtools_http server=/usr/share/libDrakX/$name/miniserv.pl start () { action "Starting $name: " perl $server /etc/$name/conf touch $subsys echo $name } stop () { action "Shutting down $name: " kill `cat /var/run/$name.pid` rm -f $subsys echo $name } restart () { stop start } case "$1" in 'start') start;; 'stop') stop;; 'status') if [ -s /var/run/$name.pid ]; then pid=`cat /var/run/$name.pid` kill -0 $pid >/dev/null 2>&1 if [ "$?" = "0" ]; then echo "$name (pid $pid) is running" else echo "$name is stopped" fi else echo "$name is stopped" fi ;; 'restart') restart;; 'reload') restart;; 'condrestart') [[ -f $subsys ]] && restart;; *) echo "Usage: $0 {start|stop|restart|status|reload|condrestart}" ;; esac exit 0 ption value='distro/mes5-2.6.33'>distro/mes5-2.6.33 Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-01-16 10:40:01 +0000
committerThierry Vignaud <tv@mandriva.org>2009-01-16 10:40:01 +0000
commit85b406ea2546815db1a035789101b902c310be12 (patch)
tree881097d485b6e811f359b371d583a8e6bfbd7d25
parent78b26b353cbfd95b1950def189aab3923f560097 (diff)
downloaddrakx-85b406ea2546815db1a035789101b902c310be12.tar
drakx-85b406ea2546815db1a035789101b902c310be12.tar.gz
drakx-85b406ea2546815db1a035789101b902c310be12.tar.bz2
drakx-85b406ea2546815db1a035789101b902c310be12.tar.xz
drakx-85b406ea2546815db1a035789101b902c310be12.zip
sync with code
Diffstat