From: Mark Huang Date: Tue, 23 May 2006 18:00:21 +0000 (+0000) Subject: - only mount or unmount if starting or stopping everything X-Git-Tag: myplc-0_4-rc1~29 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c1128f0209da864281ee2a29e46f8a73d077fd41;p=myplc.git - only mount or unmount if starting or stopping everything --- diff --git a/host.init b/host.init index 8fac379..0f46162 100755 --- a/host.init +++ b/host.init @@ -6,7 +6,7 @@ # # description: Manages all PLC services on this machine # -# $Id: host.init,v 1.5 2006/04/18 15:39:34 thierry Exp $ +# $Id: host.init,v 1.6 2006/04/20 09:01:00 thierry Exp $ # PATH=/sbin:/bin:/usr/bin:/usr/sbin @@ -64,7 +64,10 @@ mount_plc () start () { - mount_plc + # Starting everything + if [ -z "$1" ] ; then + mount_plc + fi chroot $PLC_ROOT /sbin/service plc $PLC_OPTIONS start $* check @@ -92,8 +95,10 @@ stop () check fi - umount_plc - + # Stopped everything + if [ -z "$1" ] ; then + umount_plc + fi } mount_status ()