1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-24 02:03:52 +03:00

F OpenNebula/one#5178: Ignore logrotate's failure (#585)

Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
This commit is contained in:
Petr Ospalý 2021-01-05 12:57:28 +01:00 committed by Tino Vazquez
parent 10cc0c57ca
commit f1d7811ac2
8 changed files with 8 additions and 8 deletions

View File

@ -37,7 +37,7 @@ fi
msg "Rotate log to start with an empty one"
/usr/sbin/logrotate -s /var/lib/one/.logrotate.status \
-f /etc/logrotate.d/opennebula-fireedge
-f /etc/logrotate.d/opennebula-fireedge || true
msg "Service started!"
exec /usr/bin/node /usr/lib/one/fireedge/dist/index.js

View File

@ -37,7 +37,7 @@ fi
msg "Rotate log to start with an empty one"
/usr/sbin/logrotate -s /var/lib/one/.logrotate.status \
-f /etc/logrotate.d/opennebula-flow
-f /etc/logrotate.d/opennebula-flow || true
msg "Service started!"
exec /usr/bin/ruby /usr/lib/one/oneflow/oneflow-server.rb

View File

@ -37,7 +37,7 @@ fi
msg "Rotate log to start with an empty one"
/usr/sbin/logrotate -s /var/lib/one/.logrotate.status \
-f /etc/logrotate.d/opennebula-gate
-f /etc/logrotate.d/opennebula-gate || true
msg "Service started!"
exec /usr/bin/ruby /usr/lib/one/onegate/onegate-server.rb

View File

@ -40,7 +40,7 @@ export SSH_AUTH_SOCK
msg "Rotate log to start with an empty one"
/usr/sbin/logrotate -s /var/lib/one/.logrotate.status \
-f /etc/logrotate.d/opennebula-hem
-f /etc/logrotate.d/opennebula-hem || true
msg "Service started!"
exec /usr/bin/ruby /usr/lib/one/onehem/onehem-server.rb

View File

@ -64,7 +64,7 @@ fi
msg "Rotate log to start with an empty one"
/usr/sbin/logrotate -s /var/lib/one/.logrotate.status \
-f /etc/logrotate.d/opennebula-novnc
-f /etc/logrotate.d/opennebula-novnc || true
# now we will stay in a loop monitoring and faking the foreground process...
while sleep 1 ; do

View File

@ -37,7 +37,7 @@ fi
msg "Rotate log to start with an empty one"
/usr/sbin/logrotate -s /var/lib/one/.logrotate.status \
-f /etc/logrotate.d/opennebula-scheduler
-f /etc/logrotate.d/opennebula-scheduler || true
msg "Service started!"
exec /usr/bin/mm_sched

View File

@ -37,7 +37,7 @@ fi
msg "Rotate log to start with an empty one"
/usr/sbin/logrotate -s /var/lib/one/.logrotate.status \
-f /etc/logrotate.d/opennebula-sunstone
-f /etc/logrotate.d/opennebula-sunstone || true
msg "Service started!"
exec /usr/bin/ruby /usr/lib/one/sunstone/sunstone-server.rb

View File

@ -65,7 +65,7 @@ fi
msg "Rotate log to start with an empty one"
/usr/sbin/logrotate -s /var/lib/one/.logrotate.status \
-f /etc/logrotate.d/opennebula
-f /etc/logrotate.d/opennebula || true
msg "Service started!"
exec /usr/bin/oned -f