Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved*] Systemd network shutdown idiocy?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
shazeal
Apprentice
Apprentice


Joined: 03 May 2006
Posts: 197
Location: New Zealand

PostPosted: Sun May 10, 2015 5:31 am    Post subject: [Solved*] Systemd network shutdown idiocy? Reply with quote

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
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6276

PostPosted: Sun May 10, 2015 7:57 am    Post subject: Reply with quote

Try adding
Code:
Wants=network-online.target
After=network-online.target
Back to top
View user's profile Send private message
shazeal
Apprentice
Apprentice


Joined: 03 May 2006
Posts: 197
Location: New Zealand

PostPosted: Sun May 10, 2015 3:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
shazeal
Apprentice
Apprentice


Joined: 03 May 2006
Posts: 197
Location: New Zealand

PostPosted: Sun May 10, 2015 6:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
EmaRsk
Apprentice
Apprentice


Joined: 07 Sep 2004
Posts: 158
Location: Italy

PostPosted: Mon May 11, 2015 9:48 am    Post subject: Reply with quote

shazeal wrote:
Fixed by switching back to openrc

:lol: :lol: :lol:
Back to top
View user's profile Send private message
Havin_it
Veteran
Veteran


Joined: 17 Jul 2005
Posts: 1163
Location: Edinburgh, UK

PostPosted: Tue May 26, 2015 12:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum