In Ubuntu the @APACHE_SERVICE@ == apache2 should work.

From: Jess Portnoy [mailto:notifications@github.com]
Sent: Monday, February 17, 2014 9:05 PM
To: kaltura/server
Cc: Jonathan Kanarek
Subject: Re: [server] Patches from the RPM install (#871)


In configurations/monit/monit.d/httpd.template.rc:

> @@ -1,7 +1,7 @@

>          check process apache

>             with pidfile "/var/run/httpd/httpd.pid"

> -           start program = "service @APACHE_SERVICE@ start" with timeout 60 seconds

> -           stop program = "service @APACHE_SERVICE@ stop"

> +           start program = "/sbin/service httpd start" with timeout 60 seconds
Unless we replace with path "/usr/sbin/httpd" as well, it does not help.. So if we want to support other distros, we need to add one more holder. Thanks, May the source be with you, Jess Portnoy
…
On Mon, 17 Feb 2014, Tan-Tan wrote: In configurations/monit/monit.d/httpd.template.rc: > @@ -1,7 +1,7 @@ > check process apache > with pidfile "/var/run/httpd/httpd.pid" > - start program = "service @APACHE_SERVICE@ start" with timeout 60 seconds > - stop program = "service @APACHE_SERVICE@ stop" > + start program = "/sbin/service httpd start" with timeout 60 seconds Why did you change it? We should support Ubuntu as well. — Reply to this email directly or view it on GitHub.[5270205__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwODE5NDEzNSwiZGF0YSI6eyJpZCI6MjU4MzgwNjF9fQ==--03da50802521317c35c59e3d1bb6d884d95a7c7f.gif]

—
Reply to this email directly or view it on GitHub<https://github.com/kaltura/server/pull/871/files#r9801372>.