Shutdown hangs <SOLVED>

Du kommst mit der Installation nicht voran oder willst noch was nachfragen? Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
grenra
Beiträge: 7
Registriert: 29.03.2013 21:20:52

Shutdown hangs <SOLVED>

Beitrag von grenra » 24.05.2013 23:25:42

When executing shutdown -h now in my wheezy installation, it stops after sth. like "stop rsyslog: syslogd".

Mister Google told me it may have to do with NTFS network mounts and indeed, if I ran umount /mnt/Jobe (NTFS jumbstick on my routerbox) the shutdown process finishes correctly.

Since I am too lazy to run that command manually every time, I tried to put it in a shutdown script (skeleton of /etc/init.d) like that:

Code: Alles auswählen

#! /bin/sh
### BEGIN INIT INFO
# Provides:          umountJobe
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     
# Default-Stop:      0 6
# Short-Description: Example initscript
# Description:       This file should be used to construct scripts to be
#                    placed in /etc/init.d.
### END INIT INFO

echo "unmounting Jobe"

umount /mnt/Jobe

exit 0
and I ran

Code: Alles auswählen

update-rc.d umountJobe.sh start 01 0 6 .
to populate it to runlevel 0 and 6 scripts.

And indeed it appeares in my shutdown sequence, but to no real effect. If anything shutdown stops at a different command (stopping winbind daemon instead of rsyslogd).

Any idea what I did wrong? Anything else I can try?

Thanks for any help
Zuletzt geändert von grenra am 27.05.2013 22:35:19, insgesamt 1-mal geändert.

NAB
Beiträge: 5501
Registriert: 06.03.2011 16:02:23
Lizenz eigener Beiträge: MIT Lizenz

Re: Shutdown hangs

Beitrag von NAB » 25.05.2013 00:54:24

I suppose you're talking about NFS, not NTFS.
Please see here for an explanation why Network Manager and NFS don't go well together:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539773
(notice the "unless you use a wireless connection"!)

And see here for an elaborate workaround using autofs:
http://crunchbang.org/forums/viewtopic.php?id=24991
Never change a broken system. It could be worse afterwards.

"No computer system can be absolutely secure." Intel Document Number: 336983-001

grenra
Beiträge: 7
Registriert: 29.03.2013 21:20:52

Re: Shutdown hangs

Beitrag von grenra » 27.05.2013 22:34:50

Yes, it was NFS.
Your post was a major help.
I could made it work with autofs.

Thanks!

Cae
Beiträge: 6349
Registriert: 17.07.2011 23:36:39
Wohnort: 2130706433

Re: Shutdown hangs <SOLVED>

Beitrag von Cae » 27.05.2013 22:55:53

By the way, the most used language in debianforum.de is german. As some of your further posts are in german, I assume you somehow mistook this forum for forums.debian.net or something else.

You could probably check the /etc/init.d/umountnfs.sh for more precise LSB headers to add to your script (even if the filename umountnfs.sh sounds like that that script should itself be the solution to your problem).

Cheers, Cae
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.

—Bruce Schneier

grenra
Beiträge: 7
Registriert: 29.03.2013 21:20:52

Re: Shutdown hangs <SOLVED>

Beitrag von grenra » 28.05.2013 20:23:33

Cae hat geschrieben:By the way, the most used language in debianforum.de is german. As some of your further posts are in german, I assume you somehow mistook this forum for forums.debian.net or something else.
Upps, da bin ich wirklich im falschen Forum gelandet. Sorry für die Konfusion.

Antworten