diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-14 05:57:48 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-14 05:57:48 (GMT) |
commit | 3ac192cc25f9a6865566ced1c5a8372dbad665f3 (patch) | |
tree | 2b5d850ddf15454152b6e128e109be63d98d4744 /abs/extra-testing/webmin/webmin.rc | |
parent | 7f188658c1e6a9eaf4d9644bc725c78c3f6cc5c6 (diff) | |
download | linhes_pkgbuild-3ac192cc25f9a6865566ced1c5a8372dbad665f3.zip linhes_pkgbuild-3ac192cc25f9a6865566ced1c5a8372dbad665f3.tar.gz linhes_pkgbuild-3ac192cc25f9a6865566ced1c5a8372dbad665f3.tar.bz2 |
For those that want to bond multiple NICs. Webmin! Who doesn't love Webmin.
Diffstat (limited to 'abs/extra-testing/webmin/webmin.rc')
-rw-r--r-- | abs/extra-testing/webmin/webmin.rc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/abs/extra-testing/webmin/webmin.rc b/abs/extra-testing/webmin/webmin.rc new file mode 100644 index 0000000..ee83fbe --- /dev/null +++ b/abs/extra-testing/webmin/webmin.rc @@ -0,0 +1,44 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +start=/etc/webmin/start +stop=/etc/webmin/stop +lockfile=/var/lock/webmin + +case "$1" in +'start') + stat_busy "Starting Webmin daemon" + $start >/dev/null 2>&1 </dev/null + RETVAL=$? + if [ "$RETVAL" = "0" ]; then + touch $lockfile >/dev/null 2>&1 + stat_done + else + stat_fail +fi +;; + +'stop') + stat_busy "Stopping Webmin daemon" + $stop >/dev/null 2>&1 </dev/null + RETVAL=$? + if [ "$RETVAL" = "0" ]; then + rm -f $lockfile + stat_done + else + stat_fail +fi +;; + +'restart') + $stop && $start + RETVAL=$? +;; +*) +echo "Usage: $0 { start | stop | restart }" +RETVAL=1 +;; +esac +exit $RETVAL
\ No newline at end of file |