initial
This commit is contained in:
13
contrib/gomanager-cron.service
Normal file
13
contrib/gomanager-cron.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Go Manager Cron Service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=root
|
||||
Group=root
|
||||
ExecStart=/usr/local/bin/gomanager cron
|
||||
WorkingDirectory=/var/lib/gomanager
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
9
contrib/gomanager-cron.timer
Normal file
9
contrib/gomanager-cron.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Run gomanager every day at 2am
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 02:00:00 Europe/Berlin
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
14
contrib/gomanager.service
Normal file
14
contrib/gomanager.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Go Manager
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
ExecStart=/usr/local/bin/gomanager start
|
||||
WorkingDirectory=/var/lib/gomanager
|
||||
Restart=always
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user