Began extending "ssh keeps NAS awake"-functionality. ssh, ftp and smb work. Some refactorings to allow for more services.#22
Conversation
work. Some refactorings to allow for more services.
|
Litterally 10 years later... Sorry for this!
@new-at-nas : Nice to see that the script help other NAS owner.
Good idea, as long as the different services do not require different additional arguments
Currently I have no need for this (I only use SMB), but I would be open to the monitoring of more protocols if there is a strong need from the community.
Great idea. I would add your example to the script.
return code 0 (i.e. function returns without an error) equal true in shell script, any other return code is considered false
No idea concerning portability to bash.
I completely agree. -n should also prevent sleep (like -a, -s and -m). I already change the description of the option accordingly. |
Hi fritz-hh,
your manageAcpi.sh script was 99% of what I'd been looking for. Thanks for the great work.
I added some functionality and would like to hear what you think about it.
The -s option (formerly "ssh keepawake" but I read s as "service") now works like this:
Each -s option takes a service and a duration argument. Right now, only ssh, ftp and smb work but more services can be added easily. Handling of other options is unchanged.
I would like to hear your opinion on the changes so far before investing more time.
Greetings,
Urs
PS: Some more ideas on how I would improve the script...: