webmin/webmin-initscript

52 lines
695 B
Bash

#! /bin/bash
#
# webmin Start/Stop the webmin service
# Copyright (c) 2007 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
# chkconfig: 2345 90 60
# description: a web-based interface for system administration for Unix
#
# Source function library.
. /etc/init.d/functions
WEBMIN_CONFIG=/etc/webmin
RETVAL=0
prog="webmin"
start() {
echo -n $"Starting $prog: "
$WEBMIN_CONFIG/start
evaluate_retval
echo
}
stop() {
echo -n $"Stopping $prog: "
$WEBMIN_CONFIG/stop
evaluate_retval
echo
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?