[yocto-autobuilder-helper] janitor: Add the systemd unit file used on the autobuilder

Submitted by Michael Halstead on Sept. 16, 2020, 5:44 p.m. | Patch ID: 176569

Details

Message ID 20200916174413.297497-1-mhalstead@linuxfoundation.org
State New
Headers show

Commit Message

Michael Halstead Sept. 16, 2020, 5:44 p.m.
Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
---
 janitor/ab-janitor.service | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 janitor/ab-janitor.service

Patch hide | download patch | download mbox

diff --git a/janitor/ab-janitor.service b/janitor/ab-janitor.service
new file mode 100644
index 0000000..5e834af
--- /dev/null
+++ b/janitor/ab-janitor.service
@@ -0,0 +1,14 @@ 
+# /etc/systemd/system/ab-janitor.service
+[Unit]
+Description=Autobuilder Janitor Service
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+User=pokybuild
+WorkingDirectory=/home/pokybuild
+Type=simple
+ExecStart=/usr/bin/python3 /home/pokybuild/yocto-autobuilder-helper/janitor/ab-janitor
+
+[Install]
+WantedBy=multi-user.target