modules/darwin/common/reboot: add logs
This commit is contained in:
parent
73e1cf8bf9
commit
134882a2b4
1 changed files with 15 additions and 8 deletions
|
@ -1,13 +1,20 @@
|
||||||
{
|
{
|
||||||
# reboot every sunday between 00:00 and 06:00
|
# reboot every sunday between 00:00 and 06:00
|
||||||
launchd.daemons.reboot = {
|
launchd.daemons.reboot = {
|
||||||
script = ''/sbin/shutdown -r "+$(( $RANDOM % ( 6 * 60 ) ))"'';
|
script = ''
|
||||||
serviceConfig.StartCalendarInterval = [
|
date
|
||||||
{
|
/sbin/shutdown -r "+$(( $RANDOM % ( 6 * 60 ) ))"
|
||||||
Hour = 0;
|
'';
|
||||||
Minute = 0;
|
serviceConfig = {
|
||||||
Weekday = 0;
|
StartCalendarInterval = [
|
||||||
}
|
{
|
||||||
];
|
Hour = 0;
|
||||||
|
Minute = 0;
|
||||||
|
Weekday = 0;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
StandardErrorPath = "/var/log/reboot.log";
|
||||||
|
StandardOutPath = "/var/log/reboot.log";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue