Browse Source

Ser env vars

Ernesto Nicolás Carrea 5 years ago
parent
commit
e64a49a46d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/rpm/php/hestia-php.service

+ 2 - 0
src/rpm/php/hestia-php.service

@@ -10,6 +10,8 @@ PIDFile=/var/run/hestia-php.pid
 ExecStart=/usr/local/hestia/php/sbin/hestia-php --fpm-config /usr/local/hestia/php/etc/php-fpm.conf
 ExecReload=/bin/sh -c "/bin/kill -s HUP $(/bin/cat /var/run/hestia-php.pid)"
 ExecStop=/bin/sh -c "/bin/kill -s TERM $(/bin/cat /var/run/hestia-php.pid)"
+ExecStartPre=/bin/bash -c "/bin/systemctl set-environment HOSTNAME=$(/usr/bin/hostname)"
+Environment="HESTIA=/usr/local/hestia"
 
 [Install]
 WantedBy=multi-user.target