Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sjhill at uclibc.org <sjhill@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/nfs-utils
Date: Sun,  6 May 2007 20:59:04 -0700 (PDT)	[thread overview]
Message-ID: <20070507035904.DC5CE4809D@busybox.net> (raw)

Author: sjhill
Date: 2007-05-06 20:59:04 -0700 (Sun, 06 May 2007)
New Revision: 18572

Log:
Fix script so that 'restart' actually works.


Modified:
   trunk/buildroot/package/nfs-utils/init-nfs


Changeset:
Modified: trunk/buildroot/package/nfs-utils/init-nfs
===================================================================
--- trunk/buildroot/package/nfs-utils/init-nfs	2007-05-07 03:58:30 UTC (rev 18571)
+++ trunk/buildroot/package/nfs-utils/init-nfs	2007-05-07 03:59:04 UTC (rev 18572)
@@ -21,9 +21,7 @@
 touch /var/lib/nfs/state
 touch /var/lib/nfs/xtab
 
-# See how we were called.
-case "$1" in
-  start)
+start() {
 	# Start daemons.
 	echo -n "Starting NFS statd: "
 	rpc.statd
@@ -43,8 +41,9 @@
 	rpc.mountd
 	echo "done"
 	touch /var/lock/subsys/nfs
-	;;
-  stop)
+}
+
+stop() {
 	# Stop daemons.
 	echo -n "Shutting down NFS mountd: "
 	killall -q rpc.mountd
@@ -64,7 +63,16 @@
 	killall -q rpc.statd
 	echo "done"
 	rm -f /var/lock/subsys/nfslock
+}
+
+# See how we were called.
+case "$1" in
+  start)
+	start
 	;;
+  stop)
+	stop
+	;;
   restart)
 	stop
 	start

             reply	other threads:[~2007-05-07  3:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-07  3:59 sjhill at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-01-22 15:56 [Buildroot] svn commit: trunk/buildroot/package/nfs-utils aldot at uclibc.org
2007-01-21 23:09 aldot at uclibc.org
2007-01-14  3:27 sjhill at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070507035904.DC5CE4809D@busybox.net \
    --to=sjhill@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox