Update server scripts

This commit is contained in:
2023-03-08 17:44:03 +01:00
parent 69486d2af0
commit 3fc0869253
3 changed files with 22 additions and 11 deletions

View File

@@ -0,0 +1,14 @@
[Unit]
Description=diycron
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=5
CPUQuota=80%
MemoryMax=350M
User=root
ExecStart=sh -c "cat /var/log/diycron.log >> /var/log/diycron.log.old; sh /etc/diycron > /var/log/diycron.log"
[Install]
WantedBy=multi-user.target