diff options
author | Fritz Elfert <felfert@to.com> | 1999-07-05 21:11:28 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 1999-07-05 21:11:28 +0000 |
commit | 5660d30af5850ec6756792d374913ee085c3f251 (patch) | |
tree | d78f537b3ef03aa4b7067b51aff4b7b5b319f560 | |
parent | 90cedc9d4b3153019d820d5bae0dd2ba6c46513f (diff) | |
download | plptools-5660d30af5850ec6756792d374913ee085c3f251.tar.gz plptools-5660d30af5850ec6756792d374913ee085c3f251.tar.bz2 plptools-5660d30af5850ec6756792d374913ee085c3f251.zip |
Graceful shutdown.
Quiet startup.
-rwxr-xr-x | etc/psion.in | 3 | ||||
-rw-r--r-- | plpnfsd/mp_main.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/etc/psion.in b/etc/psion.in index 0cabf11..29d23eb 100755 --- a/etc/psion.in +++ b/etc/psion.in @@ -23,7 +23,8 @@ case "$1" in ;; stop) echo -n "Shutting down Psion support: " - killproc plpnfsd + killproc plpnfsd -HUP + sleep 10 # allow plpnfsd flushing it's cache killproc ncpd echo rm -f /var/lock/subsys/psion diff --git a/plpnfsd/mp_main.c b/plpnfsd/mp_main.c index e6eb067..d9fcaf7 100644 --- a/plpnfsd/mp_main.c +++ b/plpnfsd/mp_main.c @@ -131,8 +131,9 @@ mp_main(int verbose, char *dir, char *user) gettimeofday(&tv, &tz); - printf("plpnfsd: version %s, mounting on %s\n", VERSION, dir); debug = verbose; + if (debug) + printf("plpnfsd: version %s, mounting on %s\n", VERSION, dir); /* Check if mountdir is empty (or else you can overmount e.g /etc) It is done here, because exit hangs, if hardware flowcontrol is |