Hi!
I ported a autoshutdown-script (thx chirikai for this) from FreeNAS to Debian/Ubuntu and now made some improvements. Features:
- Check, if PC is online (via IP)
- Check, if processes are running (smbd, nfsd, transmission-daemon...)
- Check, if there are connections on Ports (SSH, FTP, Bittorrent ...
- ^^^ if not, shutdwon, after a period of time
- Read actual IP(s) from ifconfig (eth0, eth1, bond0)
- define a timerange, in which OMV should stay up (whether other PCs are online or not)
- and many others
- Fake-Mode to test your settings. With this, OMV does not shutdown, but displays all what it does in the log
- the script waits 5 min after start (not in Fake-Mode)
Testers welcome I tried to keep the configuration very small and simple.
Thx to :arrow: marcelbeck for the GUI, all testers and bug-reporters.
Please report any issue related to the:
WebUI here: https://github.com/OMV-Plugins/openmediavault-autoshutdown/
installation process and the script itself here: https://github.com/OMV-Plugins/autoshutdown/
Installation:
OMV:
Install the Autoshutdown-Plugin from the stable repository: http://packages.omv-plugins.org/ in OMV
Debian/Ubuntu:
Use the deb from here. Make sure you install always the latest version.
For Expert-Settings in the config, please have a look at the included autoshutdown.default (/etc/autoshutdown.default) and the README
Thx