diff options
author | Mystery Man <unknown@mandriva.org> | 2003-05-19 14:55:45 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2003-05-19 14:55:45 +0000 |
commit | 7994644e1353db36673c5125ca86b3a6683110f5 (patch) | |
tree | eb390d9388c306c4a05d2d62b9715aca30563628 /perl-install/standalone/interactive_http/miniserv.init | |
parent | bfb5c11017c5a7a76c860d3e01c70ce562231b3f (diff) | |
download | drakx-9_1_38mdk.tar drakx-9_1_38mdk.tar.gz drakx-9_1_38mdk.tar.bz2 drakx-9_1_38mdk.tar.xz drakx-9_1_38mdk.zip |
This commit was manufactured by cvs2svn to create tag 'V9_1_38mdk'.V9_1_38mdk
Diffstat (limited to 'perl-install/standalone/interactive_http/miniserv.init')
-rw-r--r-- | perl-install/standalone/interactive_http/miniserv.init | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/perl-install/standalone/interactive_http/miniserv.init b/perl-install/standalone/interactive_http/miniserv.init deleted file mode 100644 index c9aaf9aeb..000000000 --- a/perl-install/standalone/interactive_http/miniserv.init +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh -# chkconfig: 235 99 00 -# description: Start or stop the miniserv administration server - -# 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 |