add totest manager as service

This commit is contained in:
Ludwig Nussel 2014-09-01 14:17:23 +02:00
parent 67e7743f94
commit 3af7406bf6
3 changed files with 18 additions and 2 deletions

View File

@ -17,8 +17,8 @@ from datetime import date
from osc import cmdln, oscerr
# Expand sys.path to search modules inside the pluging directory
_plugin_dir = os.path.expanduser('~/.osc-plugins')
sys.path.append(_plugin_dir)
PLUGINDIR = os.path.expanduser(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(PLUGINDIR)
from osclib.stagingapi import StagingAPI
from osclib.comments import CommentAPI

View File

@ -0,0 +1,7 @@
[Unit]
Description=openSUSE Factory ToTest Manager
[Service]
ExecStart=/usr/bin/osc totest
User=_opensuse-totest-manager
SyslogIdentifier=opensuse-totest-manager

View File

@ -0,0 +1,9 @@
[Unit]
Description=openSUSE Factory ToTest Manager Timer
[Timer]
OnUnitInactiveSec=15m
AccuracySec=5m
[Install]
WantedBy=timers.target