wakeonlan downtime
This commit is contained in:
parent
1abdfc4bcd
commit
95c71b122d
2 changed files with 22 additions and 0 deletions
|
@ -77,6 +77,7 @@ else
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "SESPENDING"
|
echo "SESPENDING"
|
||||||
|
downtime
|
||||||
systemctl suspend
|
systemctl suspend
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -9,6 +9,27 @@ defaults = {
|
||||||
'net-tools': {},
|
'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',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue