KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

RMA will not restart apache

 
Post new topic   Reply to topic    KS-Soft Forum Index -> RMA for UNIX
View previous topic :: View next topic  
Author Message
mos-eisley



Joined: 21 Mar 2007
Posts: 76
Location: Klarup (AAlborg), Demark

PostPosted: Wed Apr 25, 2007 4:42 am    Post subject: RMA will not restart apache Reply with quote

I have a Debian system with an apache and RMA running (well).

A process check check for apache processes, and if this fails, it should execute an Action Profile "RestartLinuxApache", with contains the action "Execute external program", with these attributes:



The Command Line being:

/etc/init.d/apache stop;sleep 5;/etc/init.d/apache start

When I kill the apache process to test, I see this in the syslog:

25-04-2007 12:31:37 Action "Execute external program" executed by RMA "pai05500-1.vfnz.a.p"

But the apache never restarts on the server...why?
Back to top
View user's profile Send private message MSN Messenger
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Wed Apr 25, 2007 6:34 am    Post subject: Reply with quote

I think, you should create simple script file, e.g. restart_apache.sh, and specify that particular script name into "Command line box", like: /opt/custom/restart_apache.sh

The body of the restart_apache.sh:
Code:
#!/bin/sh

/etc/init.d/apache stop;
sleep 5;
/etc/init.d/apache start


Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mos-eisley



Joined: 21 Mar 2007
Posts: 76
Location: Klarup (AAlborg), Demark

PostPosted: Wed Apr 25, 2007 6:44 am    Post subject: Reply with quote

Well, that works - just ¤#%&#¤&&%¤ me off that I need to create, maintain, distribute and execute multiple commands ( e.g. scripts) that way
Back to top
View user's profile Send private message MSN Messenger
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Wed Apr 25, 2007 7:34 am    Post subject: Reply with quote

Sorry, RMA is unable to perform several commands in one line.

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mos-eisley



Joined: 21 Mar 2007
Posts: 76
Location: Klarup (AAlborg), Demark

PostPosted: Thu Apr 26, 2007 12:29 am    Post subject: Reply with quote

Well, this worked:

/etc/init.d/apache restart

Still, multicommand support would be prefered
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> RMA for UNIX All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index