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
|
||||
launchd.daemons.reboot = {
|
||||
script = ''/sbin/shutdown -r "+$(( $RANDOM % ( 6 * 60 ) ))"'';
|
||||
serviceConfig.StartCalendarInterval = [
|
||||
{
|
||||
Hour = 0;
|
||||
Minute = 0;
|
||||
Weekday = 0;
|
||||
}
|
||||
];
|
||||
script = ''
|
||||
date
|
||||
/sbin/shutdown -r "+$(( $RANDOM % ( 6 * 60 ) ))"
|
||||
'';
|
||||
serviceConfig = {
|
||||
StartCalendarInterval = [
|
||||
{
|
||||
Hour = 0;
|
||||
Minute = 0;
|
||||
Weekday = 0;
|
||||
}
|
||||
];
|
||||
StandardErrorPath = "/var/log/reboot.log";
|
||||
StandardOutPath = "/var/log/reboot.log";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue