Add sysd service + newline

This commit is contained in:
Daniel Mason 2025-06-14 19:40:53 +12:00
parent d39591b3c0
commit 536ac1ec68
Signed by: idanoo
GPG key ID: 387387CDBC02F132
2 changed files with 18 additions and 1 deletions

17
gocatfacts.service Normal file
View file

@ -0,0 +1,17 @@
[Unit]
Description=GoCatFacts
After=network.target
[Service]
Type=simple
WorkingDirectory=/root/GoCatFacts
ExecStart=/usr/local/go/bin/go run main.go
Environment="GOCACHE=/tmp/gocatfacts"
Restart=on-failure
RestartSec=10
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target