feat: integrar servicio siax-app-DROP_SIGMAC_APP para SIAX Monitor y actualizar docs de infra
This commit is contained in:
@@ -27,11 +27,18 @@ mkdir -p "$SCRIPT_DIR/data/uploads"
|
||||
# 3. Permisos de ejecución al binario
|
||||
chmod +x "$SCRIPT_DIR/app_compartir"
|
||||
|
||||
# 4. Modo de arranque: Si existe servicio systemd, usarlo; de lo contrario, sesión tmux
|
||||
if systemctl is-active --quiet drop-sigmac-app.service 2>/dev/null || [ -f /etc/systemd/system/drop-sigmac-app.service ]; then
|
||||
echo "==> Reiniciando servicio systemd 'drop-sigmac-app.service'..."
|
||||
sudo systemctl restart drop-sigmac-app.service
|
||||
sudo systemctl status drop-sigmac-app.service --no-pager
|
||||
# 4. Modo de arranque: Si existe servicio systemd de SIAX Monitor o estándar, usarlo; de lo contrario, tmux
|
||||
SERVICE_NAME=""
|
||||
if systemctl is-active --quiet siax-app-DROP_SIGMAC_APP.service 2>/dev/null || [ -f /etc/systemd/system/siax-app-DROP_SIGMAC_APP.service ]; then
|
||||
SERVICE_NAME="siax-app-DROP_SIGMAC_APP.service"
|
||||
elif systemctl is-active --quiet drop-sigmac-app.service 2>/dev/null || [ -f /etc/systemd/system/drop-sigmac-app.service ]; then
|
||||
SERVICE_NAME="drop-sigmac-app.service"
|
||||
fi
|
||||
|
||||
if [[ -n "$SERVICE_NAME" ]]; then
|
||||
echo "==> Reiniciando servicio systemd '$SERVICE_NAME' (SIAX Monitor)..."
|
||||
sudo systemctl restart "$SERVICE_NAME"
|
||||
sudo systemctl status "$SERVICE_NAME" --no-pager
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user