Files
Configs/Server/Root/etc/systemd/system/diycron.service
2023-05-21 18:54:02 +02:00

15 lines
309 B
Desktop File

[Unit]
Description=diycron
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=10
CPUQuota=90%
MemoryMax=400M
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