mirror of
https://github.com/idanoo/GoCatFacts
synced 2025-07-01 14:52:15 +00:00
Add sysd service + newline
This commit is contained in:
parent
d39591b3c0
commit
536ac1ec68
2 changed files with 18 additions and 1 deletions
17
gocatfacts.service
Normal file
17
gocatfacts.service
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue