deragon / autopoweroff

Manage automatic poweroff and other actions (suspend / custom) when specific conditions are reunited.
GNU General Public License v2.0
52 stars 7 forks source link

[Feature request] Ignore NO_ACTION_TIME_RANGE and DEPENDANTS #43

Open molohov opened 1 year ago

molohov commented 1 year ago

Hello, thanks for the great tool!

I'm not sure if there are special values one needs to set for these child parameters, but I would like the ability to ignore these values. I want my instance to always be active, and not depend on any hosts.

molohov commented 1 year ago

It looks like setting

StartHour=0
EndHour=0

Is enough to disable NO_ACTION_TIME_RANGE What is the best way to disable DEPENDANTS? Right now I just put a fake IP address.

deragon commented 1 year ago

You have good questions and I need to fix the documentation. StartHour=0 and EndHour=0 is good. For DEPENDANTS, you can leave the list empty, i.e. Hosts=.

I will leave this issue open until I have better documented this.