From ef56d42b7e06061db5afbf9011e76d308c936080 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 16 Apr 2024 19:45:09 +0200 Subject: woodpecker agent and server --- roles/woodpecker/files/woodpecker-agent.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 roles/woodpecker/files/woodpecker-agent.service (limited to 'roles/woodpecker/files/woodpecker-agent.service') diff --git a/roles/woodpecker/files/woodpecker-agent.service b/roles/woodpecker/files/woodpecker-agent.service new file mode 100644 index 0000000..7a4031a --- /dev/null +++ b/roles/woodpecker/files/woodpecker-agent.service @@ -0,0 +1,17 @@ +[Unit] +Description=Woodpecker Agent +After=syslog.target +After=network.target + +[Service] +RestartSec=2s +Type=simple +User=woodpecker-agent +Group=woodpecker-agent +WorkingDirectory=/var/lib/woodpecker-agent/ +ExecStart=/usr/local/bin/woodpecker-agent +Restart=always +EnvironmentFile=/etc/woodpecker_agent + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3