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.
|