aboutsummaryrefslogtreecommitdiff
path: root/roles/woodpecker/files/woodpecker-server.service
diff options
context:
space:
mode:
Diffstat (limited to 'roles/woodpecker/files/woodpecker-server.service')
-rw-r--r--roles/woodpecker/files/woodpecker-server.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/woodpecker/files/woodpecker-server.service b/roles/woodpecker/files/woodpecker-server.service
new file mode 100644
index 0000000..96abc63
--- /dev/null
+++ b/roles/woodpecker/files/woodpecker-server.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Woodpecker Server
+After=syslog.target
+After=network.target
+
+[Service]
+RestartSec=2s
+Type=simple
+User=woodpecker
+Group=woodpecker
+WorkingDirectory=/var/lib/woodpecker/
+ExecStart=/usr/local/bin/woodpecker-server
+Restart=always
+EnvironmentFile=/etc/woodpecker_server
+
+[Install]
+WantedBy=multi-user.target