[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit] Problem with monit starting one of my scripts
From: |
Stephen Adams |
Subject: |
[monit] Problem with monit starting one of my scripts |
Date: |
Wed, 13 Aug 2008 11:31:13 +1200 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080724) |
Hi,
I'm trying to get an application called JIRA to be monitored by monit.
I've created a /etc/init.d/jira script and also created a
/etc/monit.d/jira file which I've shown below
check process jira with pidfile /var/run/jira/jira.pid
group tomcat
start program "/etc/init.d/jira-start"
#start program "/etc/init.d/jira start"
stop program "/etc/init.d/jira-stop"
#stop program "/etc/init.d/jira stop"
if failed host 127.0.0.1 port 8085 protocol http
and request "/jira/"
then restart
if 5 restarts within 5 cycles then timeout
The problem I have is I can't get monit to successfully restart JIRA if
I use the command "/etc/init.d/jira start"
but if I write a script called /etc/init.d/jira-start
#!/bin/bash
/etc/init.d/jira start
and use that inside monit it works?!?
It's almost as if monit is truncating my start program directive when it
hits the first space.
Does anyone have any ideas here?
Cheers
Steve
- [monit] Problem with monit starting one of my scripts,
Stephen Adams <=
- Re: [monit] Problem with monit starting one of my scripts, Martin Pala, 2008/08/13
- Re: [monit] Problem with monit starting one of my scripts, Stephen Adams, 2008/08/13
- Re: [monit] Problem with monit starting one of my scripts, Martin Pala, 2008/08/13
- Re: [monit] Problem with monit starting one of my scripts, Stephen Adams, 2008/08/13
- Re: [monit] Problem with monit starting one of my scripts, Scott Silva, 2008/08/14
- Re: [monit] Problem with monit starting one of my scripts, Matthew Robinson, 2008/08/14
- Message not available
- Re: [monit] Problem with monit starting one of my scripts, Matthew Robinson, 2008/08/15
- Re: [monit] Problem with monit starting one of my scripts, Chuck Young, 2008/08/15
- Re: [monit] Problem with monit starting one of my scripts, Bernd Petrovitsch, 2008/08/17