1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

B #5189: Remove oned's stale lock in supervisord (#522)

Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
This commit is contained in:
Petr Ospalý 2020-12-04 10:54:54 +01:00 committed by GitHub
parent 3b17e2bf3f
commit 4d9a0fd5fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,5 +52,15 @@ export SSH_AUTH_SOCK
PATH=/usr/lib/one/sh/override:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export PATH
# TODO: remove this once oned fix this:
# https://github.com/OpenNebula/one/issues/5189
#
# or at least improve this when oned start to store PID inside the lock file so
# you can verify that no oned process is running...
if [ -e /var/lock/one/one ] ; then
msg "Remove stale lock: /var/lock/one/one"
rm -f /var/lock/one/one
fi
msg "Service started!"
exec /usr/bin/oned -f