From 47292feab23cc3c832e0a64ccb6ae5a981fbd95a Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Wed, 23 Sep 2020 17:57:46 +0200 Subject: [PATCH] Systemd service file --- django-med.service | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 django-med.service diff --git a/django-med.service b/django-med.service new file mode 100644 index 0000000..8a016d9 --- /dev/null +++ b/django-med.service @@ -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