NeoRouter
http://www.neorouter.com/forum/

systemd unmounting NeoRouter after NR shutdown 120 sec delay
http://www.neorouter.com/forum/viewtopic.php?f=8&t=5899
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

-------------------
[Unit]
Description=Start nrservice at startup.

[Service]
Restart=on-failure
ExecStart=/usr/bin/nrservice

[Install]
WantedBy=graphical.target

---------------
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
http://www.phpbb.com/