wakeonlan downtime

This commit is contained in:
cronekorkn 2022-09-23 18:45:24 +02:00
parent 1abdfc4bcd
commit 95c71b122d
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
2 changed files with 22 additions and 0 deletions

View file

@ -77,6 +77,7 @@ else
done
echo "SESPENDING"
downtime
systemctl suspend
exit 0
fi

View file

@ -9,6 +9,27 @@ defaults = {
'net-tools': {},
},
},
'systemd': {
'units': {
'wakeonlan-remove-downtime.service': {
'Unit': {
'Description': 'remove icinga downtime after wakeup',
'After': {
'network.target',
'suspend.target',
},
},
'Service': {
'ExecStart': '/usr/local/bin/downtime remove',
},
'Install': {
'WantedBy': {
'suspend.target',
},
},
},
},
},
}