21 lines
446 B
SYSTEMD
21 lines
446 B
SYSTEMD
|
# 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
|