Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patches from the RPM install #871

Closed
wants to merge 9 commits into from
Closed

Patches from the RPM install #871

wants to merge 9 commits into from

Conversation

jessp01
Copy link

@jessp01 jessp01 commented Feb 17, 2014

See commit log.

Jess Portnoy added 7 commits February 17, 2014 12:27
…s, this will not work and only clutter the log with errors that are not truly errors.
…st before attempting to remove to avoid errors in the cronlog.
also, unless we change hard coded with path "/usr/sbin/httpd" no point for the @APACHE_SERVICE@ place holder as in other distributions, for instance Debian/Ubuntu, the daemon's name is 'apache2' and so is its init script under /usr/sbin.
@@ -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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change it?
We should support Ubuntu as well.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Ubuntu the @APACHE_SERVICE@ == apache2 should work.

From: Jess Portnoy [mailto:[email protected]]
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 GitHubhttps://github.com//pull/871/files#r9801372.

with pidfile "/var/run/httpd/httpd.pid"
start program = "service @APACHE_SERVICE@ start" with timeout 60 seconds
stop program = "service @APACHE_SERVICE@ stop"
with pidfile "@PID_FILE@"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please call it @APACHE_PID_PATH@ and add it to installer repo in installer/AppConfig.class.php.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done:)
Also submitted a pull for the installer repo.
Thanks,

May the source be with you,

Jess Portnoy

On Tue, 18 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"
    
  •       with pidfile "@PID_FILE@"
    

Please call it @APACHE_PID_PATH@ and add it to installer repo in installer/AppConfig.class.php.


Reply to this email directly or view it on
GitHub.[2227038__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwODI0Nzc0NSwiZGF0YSI6eyJpZCI6MjU4MzgwNjF9fQ==--5ef760579884f7abc46a9c2e33176256a5eec51c.gif]

@jessp01
Copy link
Author

jessp01 commented May 15, 2014

Broked them into smaller pulls.

@jessp01 jessp01 closed this May 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants