Skip to content

Instantly share code, notes, and snippets.

@noquierouser
Created October 7, 2025 14:44
Show Gist options
  • Save noquierouser/07dd5b9e97b631f19dd0e35f3187f0f7 to your computer and use it in GitHub Desktop.
Save noquierouser/07dd5b9e97b631f19dd0e35f3187f0f7 to your computer and use it in GitHub Desktop.
Instalando y configurando PISEE como servicio systemd

PISEEv2 como un servicio systemd

Instalación

  1. Descargar el archivo pisee.service (o copiar el contenido a un archivo).
  2. Copiar el archivo pisee.service al directorio que contiene los archivos de servicio de sistema
    sudo cp -v pisee.service /etc/systemd/system
  3. Recargar el demonio de servicios systemd
    sudo systemctl daemon-reload
  4. Activamos el servicio
    sudo systemctl enable pisee.service
  5. Iniciamos el servicio sudo systemctl start pisee.service

Una vez hecho eso, se puede comprobar el estado del servicio con sudo systemctl status pisee.service, y revisar el log de PISEE con sudo journalctl -f -u pisee.service.

Desinstalación

Para desinstalar el servicio systemd del sistema, hay que ejecutar los siguientes comandos:

  1. sudo systemctl stop pisee.service
  2. sudo systemctl disable pisee.service
  3. sudo systemctl daemon-reload

Importante

Considerar que PISEE se está instalando en /opt/pisee. Cambiar el directorio de trabajo y la ruta del ejecutable en el archivo pisee.service antes de habilitar e iniciar el servicio.

[Unit]
Description=Inicia el Nodo PISEEv2 junto con el sistema.
After=network.target
Wants=network-online.target
[Service]
Restart=always
Type=simple
ExecStart=/opt/pisee/NodoV2 start
ExecStop=/opt/pisee/NodoV2 stop
WorkingDirectory=/opt/pisee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment