Systemd service file

This commit is contained in:
Alexandre Iooss 2020-09-23 17:57:46 +02:00 committed by club-med
parent 52af84b146
commit 47292feab2
1 changed files with 20 additions and 0 deletions

20
django-med.service Normal file
View File

@ -0,0 +1,20 @@
# Copy to ~/.config/systemd/user/django-med.service then
# systemctl --user daemon-reload
# systemctl --user start django-med.service
[Unit]
Description=Mediatek Django project
After=syslog.target
[Service]
User=club-med
WorkingDirectory=/home/c/club-med/django-med
ExecStart=/home/c/club-med/django-med/entrypoint.sh
Restart=on-failure
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target