From: Thierry Parmentelat Date: Thu, 20 Apr 2006 09:01:00 +0000 (+0000) Subject: oops, the previous (unintended) check in was wrong and did not work X-Git-Tag: myplc-0_4-rc1~59 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0e55c7c3b844b0dabb8ba450bd5f0184517d8190;p=myplc.git oops, the previous (unintended) check in was wrong and did not work the 'start' function was undefined and so the system never took off The usage line is reviewed as well --- diff --git a/host.init b/host.init index 77cd087..8fac379 100755 --- a/host.init +++ b/host.init @@ -6,7 +6,7 @@ # # description: Manages all PLC services on this machine # -# $Id: host.init,v 1.4 2006/04/12 19:30:47 mlhuang Exp $ +# $Id: host.init,v 1.5 2006/04/18 15:39:34 thierry Exp $ # PATH=/sbin:/bin:/usr/bin:/usr/sbin @@ -60,6 +60,12 @@ mount_plc () [ $ERRORS -eq 0 ] && success $"PLC unmount" || failure $"PLC unmount" echo +} + +start () +{ + mount_plc + chroot $PLC_ROOT /sbin/service plc $PLC_OPTIONS start $* check } @@ -127,7 +133,7 @@ case "$command" in ;; *) - echo "Usage: $0 {start|stop|restart}" + echo "Usage: $0 {start|stop|restart|mount|umount|mountstatus}" RETVAL=1 ;; esac