mynode/rootfs/standard/etc/systemd/system/rotate_logs.service

21 lines
353 B
SYSTEMD
Raw Normal View History

2020-02-10 03:25:47 +00:00
# myNode Rotate Logs
# /etc/systemd/system/rotate_logs.service
[Unit]
Description=myNode Rotate Logs
[Service]
Type=simple
KillMode=control-group
ExecStart=/usr/bin/mynode_logrotate.sh
User=root
Group=root
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=mynode_logrotate
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target