|
|
@@ -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
|