add systemd units for repo checker

This commit is contained in:
Ludwig Nussel 2014-08-29 14:57:25 +02:00
parent f569c90040
commit 2d7376c26a
4 changed files with 20 additions and 0 deletions

View File

@ -21,5 +21,6 @@ install:
for i in $(pkgdata_DATA); do cp -a $$i $(DESTDIR)$(pkgdatadir); done
for i in osc-*.py osclib; do ln -s $(pkgdatadir)/$$i $(DESTDIR)$(oscplugindir)/$$i; done
for i in $(SUBDIRS); do $(MAKE) -C $$i install; done
install -m 644 systemd/* $(DESTDIR)$(unitdir)
.PHONY: all install

View File

@ -0,0 +1,2 @@
[Unit]
Description=openSUSE repo checker

View File

@ -0,0 +1,8 @@
[Unit]
Description=openSUSE repo checker for %i
PartOf=opensuse-repo-checker.target
[Service]
ExecStart=/usr/bin/osc check_repo -p %i --dry
User=_opensuse-repo-checker
SyslogIdentifier=factory-package-news

View File

@ -0,0 +1,9 @@
[Unit]
Description=openSUSE repochecker for %i
[Timer]
OnUnitInactiveSec=15m
AccuracySec=5m
[Install]
WantedBy=timers.target