add totest manager as service
This commit is contained in:
parent
67e7743f94
commit
3af7406bf6
@ -17,8 +17,8 @@ from datetime import date
|
|||||||
from osc import cmdln, oscerr
|
from osc import cmdln, oscerr
|
||||||
|
|
||||||
# Expand sys.path to search modules inside the pluging directory
|
# Expand sys.path to search modules inside the pluging directory
|
||||||
_plugin_dir = os.path.expanduser('~/.osc-plugins')
|
PLUGINDIR = os.path.expanduser(os.path.dirname(os.path.realpath(__file__)))
|
||||||
sys.path.append(_plugin_dir)
|
sys.path.append(PLUGINDIR)
|
||||||
|
|
||||||
from osclib.stagingapi import StagingAPI
|
from osclib.stagingapi import StagingAPI
|
||||||
from osclib.comments import CommentAPI
|
from osclib.comments import CommentAPI
|
||||||
|
7
systemd/opensuse-totest-manager.service
Normal file
7
systemd/opensuse-totest-manager.service
Normal 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
|
9
systemd/opensuse-totest-manager.timer
Normal file
9
systemd/opensuse-totest-manager.timer
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=openSUSE Factory ToTest Manager Timer
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnUnitInactiveSec=15m
|
||||||
|
AccuracySec=5m
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
x
Reference in New Issue
Block a user