This commit is contained in:
shocknet-justin 2025-08-31 00:26:52 -04:00
parent fb6faf07f0
commit 6276659c0c

View file

@ -55,16 +55,16 @@ start_services() {
exit 1 exit 1
fi fi
# Always attempt to start or restart Lightning.Pub if [ "$PUB_UPGRADE" = "0" ] || [ "$PUB_UPGRADE" = "100" ]; then
if [ "$PUB_UPGRADE" = "100" ]; then if [ "$PUB_UPGRADE" = "100" ]; then
log "${PRIMARY_COLOR}Restarting${RESET_COLOR} ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR} service after upgrade..." log "${PRIMARY_COLOR}Starting${RESET_COLOR} ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR} service after upgrade..."
$SYSTEMCTL_CMD restart lightning_pub else
elif [ "$PUB_UPGRADE" = "0" ]; then
log "${PRIMARY_COLOR}Starting${RESET_COLOR} ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR} service..." log "${PRIMARY_COLOR}Starting${RESET_COLOR} ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR} service..."
fi
$SYSTEMCTL_CMD start lightning_pub $SYSTEMCTL_CMD start lightning_pub
fi fi
# Check Lightning.Pub status after attempting to start/restart # Check Lightning.Pub status after attempting to start
if [ "$PUB_UPGRADE" = "0" ] || [ "$PUB_UPGRADE" = "100" ]; then if [ "$PUB_UPGRADE" = "0" ] || [ "$PUB_UPGRADE" = "100" ]; then
if ! $SYSTEMCTL_CMD is-active --quiet lightning_pub; then if ! $SYSTEMCTL_CMD is-active --quiet lightning_pub; then
log "Failed to start or restart ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR}. Please check the logs." log "Failed to start or restart ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR}. Please check the logs."