Ajout variable unité systemd
This commit is contained in:
parent
2b80ab4512
commit
7546c29fde
|
@ -34,11 +34,20 @@ ExecStart=/usr/lib/jvm/java-8-openjdk-amd64/bin/java -jar /home/metabase/metabas
|
||||||
User=metabase
|
User=metabase
|
||||||
Group=metabase
|
Group=metabase
|
||||||
WorkingDirectory=/home/metabase
|
WorkingDirectory=/home/metabase
|
||||||
|
EnvironmentFile=/home/metabase/metabase.conf
|
||||||
|
StandardOutput=syslog
|
||||||
|
StandardError=syslog
|
||||||
|
SyslogIdentifier=metabase
|
||||||
|
SuccessExitStatus=143
|
||||||
|
TimeoutStopSec=120
|
||||||
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
Il faut enlever la variable `EnvironmentFile` si on n'utilise que la configuration par défaut de metabase.
|
||||||
|
|
||||||
Puis lancer et activer le service au démarrage :
|
Puis lancer et activer le service au démarrage :
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
|
|
Loading…
Reference in a new issue