aboutsummaryrefslogtreecommitdiff
path: root/buildos.service
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-25 15:03:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-25 15:03:59 +0200
commit864fc1c2e0597606ec8e2e04ae3150144aa3ed39 (patch)
tree640a3ad90260881937fad6a3ca675522b2fa0879 /buildos.service
parent0ba253ef6926d2f8bf403f9b96ca9120d0022861 (diff)
Add buildos monitor
Diffstat (limited to 'buildos.service')
-rw-r--r--buildos.service22
1 files changed, 22 insertions, 0 deletions
diff --git a/buildos.service b/buildos.service
new file mode 100644
index 0000000..b1aedf1
--- /dev/null
+++ b/buildos.service
@@ -0,0 +1,22 @@
+[Unit]
+Description=Build OS Monitor
+After=default.target
+Conflicts=getty@tty1.service
+
+[Service]
+Type=idle
+TimeoutStartSec=infinity
+RemainAfterExit=true
+ExecStart=/usr/sbin/buildos
+StandardInput=tty-force
+StandardOutput=inherit
+StandardError=inherit
+TTYPath=/dev/tty1
+TTYReset=yes
+TTYVHangup=yes
+User=build
+Group=build
+WorkingDirectory=~
+
+[Install]
+WantedBy=default.target