mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-06-05 21:59:36 +02:00
Update server scripts
This commit is contained in:
14
Server/Root/etc/systemd/system/diycron.service
Normal file
14
Server/Root/etc/systemd/system/diycron.service
Normal 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
|
Reference in New Issue
Block a user