Skip to content

Instantly share code, notes, and snippets.

@categulario
Created June 12, 2019 22:45
Show Gist options
  • Save categulario/80de6f85bc576c81870527444db435b3 to your computer and use it in GitHub Desktop.
Save categulario/80de6f85bc576c81870527444db435b3 to your computer and use it in GitHub Desktop.
Ejemplo de una unidad systemd
[Unit]
Description=El servicio de la aplicación flask del curso
After=network.target
[Service]
User=infopata
Group=infopata
WorkingDirectory=/home/infopata/Proyectos/APIRest/
ExecStart=/ruta/hacia/node index.js
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment