GisServer/playbooks/templates/qgis-server@.service.j2

21 lines
498 B
Plaintext
Raw Normal View History

2024-04-06 22:50:53 +02:00
;; @path: /etc/systemd/system/qgis-server@.service
;; @permission: -rw-r--r-- 1 root root
[Unit]
Description=QGIS Server Service (instance %i)
[Service]
User={{ qgis_server['user'] }}
Group={{ qgis_server['group'] }}
StandardOutput=null
StandardError=journal
StandardInput=socket
;; set env var as needed
;Environment="LANG=en_EN.UTF-8"
;; or use a file:
EnvironmentFile={{ qgis_server['path'] }}/qgis_server_env
ExecStart=/usr/lib/cgi-bin/qgis_mapserv.fcgi
[Install]
WantedBy=multi-user.target