Topics

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


Michael Halstead
 

Signed-off-by: Michael Halstead <mhalstead@...>
---
janitor/ab-janitor.service | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 janitor/ab-janitor.service

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
--
2.26.2