linux:service

Ceci est une ancienne révision du document !


Services

/etc/systemd/system/gunicorn.service
[Unit]
Description=Launch gunicorn to run web plateform
 
[Service]
Type=simple
User=root
ExecStart=/home/user/start_gunicorn.sh
Restart=on-failure
 
[Install]
WantedBy=multi-user.target

Enregistrer le service:

sudo systemctl enable gunicorn.service

Voir le statut du service:

sudo service gunicorn status

Redémarrer le service:

sudo service gunicorn restart
  • linux/service.1547643005.txt.gz
  • Dernière modification : 2021/04/04 17:01
  • (modification externe)