|systemd unmounting NeoRouter after NR shutdown 120 sec delay
|Page 1 of 1|
|Author:||OregonJohn [ Fri Jul 15, 2016 3:36 pm ]|
|Post subject:||systemd unmounting NeoRouter after NR shutdown 120 sec delay|
Linux Mint 18 Mate (systemd)
I have two lines like the following in fstab
//10.22.0.9/closed cifs username=xxx,password=xxx,iocharset=utf8,nofail,x-systemd.automount,x-systemd.device-timeout=1,sec=ntlm 0 0
When I shutdown or reboot it takes 120 seconds for each of the mounts to timeout before actually shutting down.
Here are the steps I took to create the systemd service for nrservice.
sudo gedit /lib/systemd/system/nrservice.service
Description=Start nrservice at startup.
sudo systemctl daemon-reload
sudo systemctl enable nrservice.service
sudo systemctl enable nrservice
neorouter will restart at boot and after hibernation/sleep
After research and testing I believe the 120 second delay problem is that nrservice shuts down before the umount command in systemd takes over. I tried creating a unmount.service to activate a script that umount those but I can't find when to start the umount.service soon enough to beat out the stopping of nrservice.
Do you have any clues? Thanks in advance.
|Author:||OregonJohn [ Mon Jul 18, 2016 3:29 pm ]|
|Post subject:||Re: systemd unmounting NeoRouter after NR shutdown 120 sec delay|
Sorry, I should explain what I'm trying to do.
I want to put my laptop to sleep or hibernation then when it comes awake in a different location, with a different ip address, neorouter reconnects automatically.
Similarly, if I am connected via lan cable then unplug and am only on wireless, I want neorouter to adjust to that change.
Thanks in advance. John.
|Page 1 of 1||All times are UTC - 5 hours|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group