summarylogtreecommitdiffstats
path: root/headscale.service
diff options
context:
space:
mode:
Diffstat (limited to 'headscale.service')
-rw-r--r--headscale.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/headscale.service b/headscale.service
new file mode 100644
index 000000000000..77bd210dcf9b
--- /dev/null
+++ b/headscale.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Headscale server
+After=network.target
+
+[Service]
+Type=simple
+RemainAfterExit=yes
+ExecStart=/usr/bin/headscale serve
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target