LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   sm-notify delay how to disable? (https://www.linuxquestions.org/questions/linux-general-1/sm-notify-delay-how-to-disable-4175554721/)

ron7000 09-28-2015 11:31 AM

sm-notify delay how to disable?
 
i use nfs, server and client, between a few linux systems.
I notice on boot and shutdown the process will sometimes hang on sm-notify. And actually most times if everything is working fine sm-notify will take around 30 seconds before the boot process continues.

For instance i was booting up a system and it hung on sm-notify, and this system only mounts a folder it does not export anything, and then i realized i forgot to plug in the network cable.
But let's say I was doing... whatever, and decided to take the machine off the network and simply set the ip address to static something or deleted all the network ports and nothing was configured, but I left NFS client enabled which means it tries to mount /data from some other machine and it can't.

Is there a way to make sm-notify less of a pain, like a 10 second timeout then move on?
Or is it supposed to hang... forever... for what reason? and it's all my fault for not undoing NFS server/client ?

tsgomez 10-05-2015 12:02 PM

The -m option to sm-notify allows you to set the time (in minutes) "to continue retrying notifications to unresponsive hosts". I haven't personally tried it, but you could always try to set -m 0.16.

If the -m option isn't set, it will retry for 15 minutes. If it's set to 0, it will continue sending notifications until it's manually stopped.

http://linux.die.net/man/8/sm-notify


All times are GMT -5. The time now is 01:06 PM.