View previous topic :: View next topic |
Author |
Message |
shazeal Apprentice


Joined: 03 May 2006 Posts: 206 Location: New Zealand
|
Posted: Sun May 10, 2015 5:31 am Post subject: [Solved*] Systemd network shutdown idiocy? |
|
|
Systemd shuts down the network before unmounting remote file systems...
Quote: | May 10 17:14:47 hayaku systemd[1]: Stopped Gentoo Network Interface Management Scripts.
May 10 17:14:47 hayaku systemd[1]: Removed slice system-net.slice.
May 10 17:14:47 hayaku systemd[1]: Stopping system-net.slice.
May 10 17:14:47 hayaku sddm[984]: Display server stopped.
May 10 17:14:47 hayaku sddm[984]: Removing display 0 ...
May 10 17:14:47 hayaku sddm[984]: Adding new display 0 on vt 1 ...
May 10 17:14:47 hayaku sddm[984]: Adding cookie to "/var/run/sddm/:0"
May 10 17:14:47 hayaku sddm[984]: Display server starting...
May 10 17:14:47 hayaku sddm[984]: Running: /usr/bin/X :0 -auth /var/run/sddm/:0 -nolisten tcp -background none -noreset
May 10 17:14:47 hayaku sddm[984]: Signal received: SIGTERM
May 10 17:14:47 hayaku sddm[984]: Display server stopping...
May 10 17:14:47 hayaku sddm[984]: Display server stopped.
May 10 17:14:47 hayaku systemd[1]: Stopped Simple Desktop Display Manager.
May 10 17:14:47 hayaku systemd[1]: Stopping Permit User Sessions...
May 10 17:14:47 hayaku systemd[1]: Stopped Permit User Sessions.
May 10 17:14:47 hayaku systemd[1]: Stopped target Remote File Systems.
May 10 17:14:47 hayaku systemd[1]: Stopping Remote File Systems.
May 10 17:14:47 hayaku systemd[1]: Unmounting /mnt/share... |
This results in a huge delay on shutdown, luckily they added a M$ style fix everything CTRL-ALT-DEL to kill the session.
Is it possible to change the order? I tried putting After=net@net0.service in the remote-fs.target but it did not change anything. _________________ CFLAGS="-OmgWTFR1CE --fun-lol-loops --march=asmx86go"
Last edited by shazeal on Sun May 10, 2015 6:22 pm; edited 1 time in total |
|
Back to top |
|
 |
mv Watchman


Joined: 20 Apr 2005 Posts: 6396
|
Posted: Sun May 10, 2015 7:57 am Post subject: |
|
|
Try adding Code: | Wants=network-online.target
After=network-online.target |
|
|
Back to top |
|
 |
shazeal Apprentice


Joined: 03 May 2006 Posts: 206 Location: New Zealand
|
Posted: Sun May 10, 2015 3:52 pm Post subject: |
|
|
Nope it changed nothing
remote-fs.target contains...
Code: |
[Unit]
Description=Remote File Systems
Documentation=man:systemd.special(7)
Wants=network-online.target
After=network-online.target
[Install]
WantedBy=multi-user.target |
The man pages give away nothing, I saw some posts on google where they added the network-online.target to the "remote-fs.service" rather than target so I am guessing they had a completely different setup... _________________ CFLAGS="-OmgWTFR1CE --fun-lol-loops --march=asmx86go" |
|
Back to top |
|
 |
shazeal Apprentice


Joined: 03 May 2006 Posts: 206 Location: New Zealand
|
Posted: Sun May 10, 2015 6:23 pm Post subject: |
|
|
Marking this Solved*
Fixed by switching back to openrc, I cant spend the time to fully solve this as I need working shutdown for remote restarts. _________________ CFLAGS="-OmgWTFR1CE --fun-lol-loops --march=asmx86go" |
|
Back to top |
|
 |
EmaRsk Apprentice

Joined: 07 Sep 2004 Posts: 158 Location: Italy
|
Posted: Mon May 11, 2015 9:48 am Post subject: |
|
|
shazeal wrote: | Fixed by switching back to openrc |
 |
|
Back to top |
|
 |
Havin_it Veteran

Joined: 17 Jul 2005 Posts: 1194 Location: Edinburgh, UK
|
Posted: Tue May 26, 2015 12:10 pm Post subject: |
|
|
God, I can't believe they still haven't rectified this default behaviour. This is something people have been complaining about since systemd first raised its head. |
|
Back to top |
|
 |
|