Browse Source

Update pid file location

Ernesto Nicolás Carrea 5 years ago
parent
commit
e3612a3b65
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/rpm/nginx/hestia-nginx.service

+ 3 - 3
src/rpm/nginx/hestia-nginx.service

@@ -6,10 +6,10 @@ After=hestia-php.service
 
 [Service]
 Type=forking
-PIDFile=/var/run/hestia-nginx.pid
+PIDFile=/var/hestia-nginx.pid
 ExecStart=/usr/local/hestia/nginx/sbin/nginx -c /usr/local/hestia/nginx/conf/nginx.conf
-ExecReload=/bin/sh -c "/bin/kill -s HUP $(/bin/cat /var/run/hestia-nginx.pid)"
-ExecStop=/bin/sh -c "/bin/kill -s TERM $(/bin/cat /var/run/hestia-nginx.pid)"
+ExecReload=/bin/sh -c "/bin/kill -s HUP $(/bin/cat /var/hestia-nginx.pid)"
+ExecStop=/bin/sh -c "/bin/kill -s TERM $(/bin/cat /var/hestia-nginx.pid)"
 
 [Install]
 WantedBy=hestia.service