2014-05-17, 16:48
I wrote a bash script, which monitors logins via ssh or samba and inhibits xbmc to shutdown the machine using xbmc-send with action AllowIdleShutdown/InhibitIdleShutdown in this case. The script was executed every 5min via cron.
Problem: Even if I set the AllowIdleShutdown or InhibitIdleShutdown(false) the machine NEVER was shut down.
I THINK that the problem is that my script is "stateless": It sets AllowIdleShutdown or InhibitIdleShutdown(false) every 5min independent if it was already set before.
May that be the case?
Best regards - Henning
Problem: Even if I set the AllowIdleShutdown or InhibitIdleShutdown(false) the machine NEVER was shut down.
I THINK that the problem is that my script is "stateless": It sets AllowIdleShutdown or InhibitIdleShutdown(false) every 5min independent if it was already set before.
May that be the case?
Best regards - Henning