debmaker/ressources/umap/rootfs/umap.service

19 lines
484 B
Desktop File

[Unit]
Description=umap
After=network.target
[Service]
User=umap
Group=umap
#WorkingDirectory=/var/share/umap/
ExecStartPre=/usr/bin/python3 -m venv /var/lib/umap/venv
ExecStartPre=/var/lib/umap/venv/bin/pip install /usr/share/umap/.[docker]
ExecStartPre=/var/lib/umap/venv/bin/python3 /usr/share/umap/manage.py migrate
ExecStart=/var/lib/umap/venv/bin/uwsgi --ini /etc/umap/uwsgi.ini
StandardOutput=inherit
StandardError=inherit
Restart=always
[Install]
WantedBy=multi-user.target