#! /bin/bash # # webmin Start/Stop the usermin service # Copyright (c) 2009 by Silvan Calarco # # chkconfig: 2345 90 60 # description: a web-based interface for usermin # # Source function library. . /etc/init.d/functions USERMIN_CONFIG=/etc/usermin RETVAL=0 prog="webmin" start() { echo -n $"Starting $prog: " $USERMIN_CONFIG/start evaluate_retval echo } stop() { echo -n $"Stopping $prog: " $USERMIN_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 $?