From 0e55c7c3b844b0dabb8ba450bd5f0184517d8190 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 20 Apr 2006 09:01:00 +0000 Subject: [PATCH] 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 --- host.init | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 2.47.0