Merge pull request #1534 from jberry-suse/systemd-cleanup

systemd: ensure all services have a relaxed RuntimeMaxSec, SyslogIdentifier, and retry as needed.
This commit is contained in:
Jimmy Berry 2018-05-11 11:23:06 -05:00 committed by GitHub
commit eff4e459c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 30 additions and 8 deletions

View File

@ -5,6 +5,7 @@ Description=openSUSE Release Tools: announce new %i build
User=osrt-announcer
SyslogIdentifier=osrt-announcer
ExecStart=/usr/bin/osrt-announcer --config "/etc/openSUSE-release-tools/announcer/%i.yml" --verbose
RuntimeMaxSec=3 hour
[Install]
WantedBy=multi-user.target

View File

@ -2,11 +2,11 @@
Description=openSUSE Release Tools: check-source
[Service]
Type=simple
User=osrt-check-source
SyslogIdentifier=osrt-check-source
# TODO Drop group flag once #1181 is resolved.
ExecStart=/usr/bin/osrt-check_source --verbose --group factory-auto review
RuntimeMaxSec=2 hour
[Install]
WantedBy=multi-user.target

View File

@ -2,9 +2,10 @@
Description=openSUSE Release Tools: leaper crawler for %i (creates SRs from upstream projects)
[Service]
Type=simple
User=osrt-leaper
SyslogIdentifier=osrt-leaper
ExecStart=/bin/bash "/usr/bin/osrt-leaper-crawler-%i"
RuntimeMaxSec=6 hour
[Install]
WantedBy=multi-user.target

View File

@ -2,9 +2,10 @@
Description=openSUSE Release Tools: leaper manager for %i (set source projects)
[Service]
Type=simple
User=osrt-leaper
SyslogIdentifier=osrt-leaper
ExecStart=/usr/bin/osrt-manager_42 -c /etc/openSUSE-release-tools/manager_42/%i.yml
RuntimeMaxSec=6 hour
[Install]
WantedBy=multi-user.target

View File

@ -3,7 +3,9 @@ Description=openSUSE Release Tools: leaper review
[Service]
User=osrt-leaper
SyslogIdentifier=osrt-leaper
ExecStart=/usr/bin/osrt-leaper --verbose --manual-version-updates --manual-maintenance-updates review
RuntimeMaxSec=6 hour
[Install]
WantedBy=multi-user.target

View File

@ -2,9 +2,10 @@
Description=openSUSE Release Tools: maintenance incidents
[Service]
Type=simple
User=osrt-maintenance
SyslogIdentifier=osrt-maintenance
ExecStart=/usr/bin/osrt-check_maintenance_incidents --verbose review
RuntimeMaxSec=6 hour
[Install]
WantedBy=multi-user.target

View File

@ -5,6 +5,7 @@ Description=openSUSE Release Tools: metrics release for %i
User=osrt-metrics
SyslogIdentifier=osrt-metrics
ExecStart=/usr/bin/osrt-metrics --debug --release-only -p "%i"
RuntimeMaxSec=2 hour
[Install]
WantedBy=multi-user.target

View File

@ -5,6 +5,7 @@ Description=openSUSE Release Tools: metrics for %i
User=osrt-metrics
SyslogIdentifier=osrt-metrics
ExecStart=/usr/bin/osrt-metrics --debug -p "%i"
RuntimeMaxSec=120 hour
[Install]
WantedBy=multi-user.target

View File

@ -3,7 +3,9 @@ Description=openSUSE Release Tools: generate package lists for %i
[Service]
User=osrt-repo-checker
SyslogIdentifier=osrt-pkglistgen
ExecStart=/usr/bin/osrt-pkglistgen update_and_solve -p "%i"
RuntimeMaxSec=24 hour
[Install]
WantedBy=multi-user.target

View File

@ -5,6 +5,7 @@ Description=openSUSE Release Tools: repo-checker project_only for %i
User=osrt-repo-checker
SyslogIdentifier=osrt-repo-checker
ExecStart=/usr/bin/osrt-repo_checker --debug project_only --post-comments "%i"
RuntimeMaxSec=24 hour
[Install]
WantedBy=multi-user.target

View File

@ -5,6 +5,7 @@ Description=openSUSE Release Tools: repo-checker
User=osrt-repo-checker
SyslogIdentifier=osrt-repo-checker
ExecStart=/usr/bin/osrt-repo_checker --debug review
RuntimeMaxSec=24 hour
[Install]
WantedBy=multi-user.target

View File

@ -2,10 +2,10 @@
Description=openSUSE Release Tools: staging-bot check for duplicate binaries produced in %i
[Service]
Type=simple
User=osrt-staging-bot
SyslogIdentifier=osrt-staging-bot
ExecStart=/usr/bin/osc staging -p "%i" check_duplicate_binaries --save
RuntimeMaxSec=6 hour
[Install]
WantedBy=multi-user.target

View File

@ -7,6 +7,7 @@ SyslogIdentifier=osrt-staging-bot
ExecStart=/usr/bin/env bash -c ' \
osc staging -p "%i" unignore --cleanup \
'
RuntimeMaxSec=6 hour
[Install]
WantedBy=multi-user.target

View File

@ -2,10 +2,10 @@
Description=openSUSE Release Tools: staging-bot devel list (stored in dashboard)
[Service]
Type=simple
User=osrt-staging-bot
SyslogIdentifier=osrt-staging-bot
ExecStart=/usr/bin/osrt-devel-project list -w
RuntimeMaxSec=16 hour
# API query regularly times out, but will be cached if called again.
Restart=on-failure

View File

@ -5,6 +5,7 @@ Description=openSUSE Release Tools: staging-bot comment openQA/build results on
User=osrt-staging-bot
SyslogIdentifier=osrt-staging-bot
ExecStart=/usr/bin/osrt-openqa-comments -p "%i"
RuntimeMaxSec=6 hour
[Install]
WantedBy=multi-user.target

View File

@ -12,6 +12,7 @@ ExecStart=/usr/bin/env bash -c ' \
osc staging -p "%i" unselect --cleanup && \
osc staging -p "%i" repair --cleanup \
'
RuntimeMaxSec=24 hour
[Install]
WantedBy=multi-user.target

View File

@ -8,6 +8,7 @@ ExecStart=/usr/bin/env bash -c ' \
/usr/bin/osrt-devel-project reviews --min-age 3 --remind && \
/usr/bin/osrt-devel-project requests --min-age 3 --remind \
'
RuntimeMaxSec=16 hour
[Install]
WantedBy=multi-user.target

View File

@ -2,10 +2,10 @@
Description=openSUSE Release Tools: supersede duplicate submissions for %i
[Service]
Type=simple
User=osrt-staging-bot
SyslogIdentifier=osrt-staging-bot
ExecStart=/usr/bin/osc check_dups "%i"
RuntimeMaxSec=3 hour
[Install]
WantedBy=multi-user.target

View File

@ -5,6 +5,12 @@ Description=openSUSE Release Tools: staging-bot regular for %i (rebuild staging
User=osrt-staging-bot
SyslogIdentifier=osrt-staging-bot
ExecStart=/usr/bin/osrt-suppkg_rebuild -p "%i"
RuntimeMaxSec=6 hour
# API regularly 502s.
Restart=on-failure
StartLimitInterval=1 hour
StartLimitBurst=3
[Install]
WantedBy=multi-user.target

View File

@ -2,8 +2,8 @@
Description=openSUSE Release Tools: ToTest Manager for %i
[Service]
Type=simple
User=osrt-totest-manager
SyslogIdentifier=osrt-totest-manager
WorkingDirectory=~
ExecStart=/usr/bin/osrt-totest-manager --verbose run --interval 5 "%i"