Community


All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: systemd unmounting NeoRouter after NR shutdown 120 sec delay
PostPosted: Fri Jul 15, 2016 3:36 pm 
Offline

Joined: Thu Aug 05, 2010 12:36 am
Posts: 40
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.


Top
 Profile  
 
 Post subject: Re: systemd unmounting NeoRouter after NR shutdown 120 sec delay
PostPosted: Mon Jul 18, 2016 3:29 pm 
Offline

Joined: Thu Aug 05, 2010 12:36 am
Posts: 40
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 15 guests


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 post attachments in this forum

Search for:
Jump to:  
cron