1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

B #6241: Modified fireedge service file (#2651)

This commit is contained in:
vichansson 2023-06-26 19:05:48 +03:00 committed by GitHub
parent d6bbf71b33
commit d1c32620ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ Type=simple
Group=oneadmin
User=oneadmin
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-fireedge -s /var/lib/one/.logrotate.status
ExecStartPre=-sh 'gzip -9 /var/log/one/fireedge.log-* &'
ExecStartPre=-/bin/sh -c 'for file in /var/log/one/fireedge*.log; do if [ ! -f "$file.gz" ]; then gzip -9 "$file"; fi; done'
ExecStart=/bin/sh -c 'exec node /usr/lib/one/fireedge/dist/index.js >>/var/log/one/fireedge.log 2>>/var/log/one/fireedge.error'
StartLimitInterval=60
StartLimitBurst=3