mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 16:46:54 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
26
roles/metabase/templates/metabase.service.j2
Normal file
26
roles/metabase/templates/metabase.service.j2
Normal file
@@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=Metabase opensource BI
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{ metabase_user }}
|
||||
WorkingDirectory={{ metabase_root_dir }}/app
|
||||
EnvironmentFile={{ metabase_root_dir }}/etc/env
|
||||
ExecStart=/usr/bin/java -Djava.net.preferIPv4Stack=true \
|
||||
{% if system_proxy is defined and system_proxy != '' %}
|
||||
-Dhttp.proxyHost={{ system_proxy | urlsplit('hostname') }} -Dhttp.proxyPort={{ system_proxy | urlsplit('port') }} \
|
||||
-Dhttps.proxyHost={{ system_proxy | urlsplit('hostname') }} -Dhttps.proxyPort={{ system_proxy | urlsplit('port') }} \
|
||||
{% endif %}
|
||||
-jar {{ metabase_root_dir }}/app/metabase.jar
|
||||
SuccessExitStatus=143
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
NoNewPrivileges=yes
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Reference in New Issue
Block a user