-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use rocky mirror script #1245
Conversation
Errored hosts (0)Changed hosts (1)Unaffected hosts (78)Changed hostsdiff for fallingrocks.ocf.berkeley.edu*******************************************
File[/etc/systemd/system/rocky.service] =>
parameters =>
content =>
@@ -5,5 +5,5 @@
User=mirrors
Type=simple
-ExecStart=/opt/mirrors/project/rocky/sync-archive
+ExecStart=/opt/mirrors/project/rocky/sync-archive > /dev/null 2>&1
# one day should be good enough for anyone
RuntimeMaxSec=86400
*******************************************
File[/etc/systemd/system/rocky.timer] =>
parameters =>
content =>
@@ -5,5 +5,5 @@
_
[Timer]
-OnCalendar=*-*-* 1/3:33:00
+OnCalendar=*-*-* 1/4:33:00
_
[Install]
*******************************************
Ocf::Systemd::Timer[rocky] =>
parameters =>
service_content =>
@@ -5,5 +5,5 @@
User=mirrors
Type=simple
-ExecStart=/opt/mirrors/project/rocky/sync-archive
+ExecStart=/opt/mirrors/project/rocky/sync-archive > /dev/null 2>&1
# one day should be good enough for anyone
RuntimeMaxSec=86400
timer_content =>
@@ -5,5 +5,5 @@
_
[Timer]
-OnCalendar=*-*-* 1/3:33:00
+OnCalendar=*-*-* 1/4:33:00
_
[Install]
*******************************************
Ocf_mirrors::Timer[rocky] =>
parameters =>
exec_start =>
- /opt/mirrors/project/rocky/sync-archive
+ /opt/mirrors/project/rocky/sync-archive > /dev/null 2>&1
hour =>
- 1/3
+ 1/4
******************************************* Unaffected hosts
|
@@ -10,8 +10,8 @@ | |||
|
|||
ocf_mirrors::timer { | |||
'rocky': | |||
exec_start => '/opt/mirrors/project/rocky/sync-archive', | |||
hour => '1/3', | |||
exec_start => '/opt/mirrors/project/rocky/sync-archive > /dev/null 2>&1', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why throw out the output? this gets stored in journalctl and could be useful to inspect if something goes wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed, although the output is redirected to logfile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like they have two "logs", one is intended to be public facing (saved in /opt/mirrors/project/rocky
) and the other uses the logger
command to write directly to the syslog. So I spoke a bit too soon here, it probably doesn't matter if we redirect the /dev/null
or not, though it certainly doesn't hurt to keep stdout around in case it ends up being useful for debugging purposes later on.
Errored hosts (0)Changed hosts (1)Unaffected hosts (78)Changed hostsdiff for fallingrocks.ocf.berkeley.edu*******************************************
File[/etc/systemd/system/rocky.timer] =>
parameters =>
content =>
@@ -5,5 +5,5 @@
_
[Timer]
-OnCalendar=*-*-* 1/3:33:00
+OnCalendar=*-*-* 1/4:33:00
_
[Install]
*******************************************
Ocf::Systemd::Timer[rocky] =>
parameters =>
timer_content =>
@@ -5,5 +5,5 @@
_
[Timer]
-OnCalendar=*-*-* 1/3:33:00
+OnCalendar=*-*-* 1/4:33:00
_
[Install]
*******************************************
Ocf_mirrors::Timer[rocky] =>
parameters =>
hour =>
- 1/3
+ 1/4
******************************************* Unaffected hosts
|
No description provided.