21 lines
374 B
SYSTEMD
21 lines
374 B
SYSTEMD
|
[Unit]
|
||
|
Description=Mitra Server
|
||
|
After=postgresql.service
|
||
|
Requires=postgresql.service
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=/usr/bin/mitra
|
||
|
WorkingDirectory=/var/lib/mitra
|
||
|
Environment="ENVIRONMENT=production"
|
||
|
Environment="CONFIG_PATH=/etc/mitra/config.yaml"
|
||
|
User=mitra
|
||
|
Group=mitra
|
||
|
|
||
|
PrivateTmp=true
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=true
|
||
|
NoNewPrivileges=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|