25 lines
536 B
Desktop File
25 lines
536 B
Desktop File
[Unit]
|
|
Description=logtracker
|
|
After=network.target postgresql.service
|
|
|
|
[Service]
|
|
Type=notify
|
|
Environment=LANG=C.UTF-8
|
|
User=%p
|
|
Group=%p
|
|
ExecStartPre=/usr/bin/logtracker-manage migrate --noinput
|
|
ExecStartPre=/usr/bin/logtracker-manage collectstatic --noinput
|
|
ExecStart=/usr/bin/uwsgi --ini /etc/%p/uwsgi.ini
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillSignal=SIGQUIT
|
|
Restart=on-failure
|
|
RuntimeDirectory=logtracker
|
|
ProtectSystem=strict
|
|
ProtectHome=yes
|
|
ProtectDevices=yes
|
|
NoNewPrivileges=yes
|
|
PrivateTmp=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|