21 lines
498 B
Plaintext
21 lines
498 B
Plaintext
|
;; @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
|