-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
service.running not working #1506
Comments
what distribution are you running? |
[root@esb1 ~]# uname -a On Tue, Jun 26, 2012 at 5:05 PM, Thomas S Hatch
Ben Mathews |
thanks, I will take a look |
@benmathews what return code does |
[root@esb1 ~]# /sbin/service activemq status On Mon, Jul 16, 2012 at 4:47 PM, Aaron Tygart
Ben Mathews |
@benmathews can you do |
[root@esb1 ~]# /sbin/service activemq stop On Tue, Jul 17, 2012 at 12:09 PM, Aaron Tygart
Ben Mathews |
The problem is with the init script, not with the service.running state. The init script needs to return a nonzero exit code on |
Thanks for walking me through this. For anyone else that comes across this, I've filed a defect against activemq at https://issues.apache.org/jira/browse/AMQ-3936 |
No problem at all. I recently had to do similar debugging on other init scripts :) |
I’ve got a a sls file as follows
In other states I've written, the running state seems to be working, but in this case it doesn’t start the service.
[root@esb1 ~]# salt-call state.highstate -l trace
[INFO ] Executing state service.running for activemq
[INFO ] Executing command /sbin/service activemq status in directory /root
[INFO ] No changes made for activemq
[root@esb1 ~]# /sbin/service activemq status
ActiveMQ Broker is not running.
[root@esb1 ~]# ps -ef |grep active
root 27928 3069 0 15:25 pts/0 00:00:00 grep active
[root@salt ~]# salt-master --version
salt-master 0.9.9.1
[root@esb1 ~]# salt-minion --version
salt-minion 0.10.1
The text was updated successfully, but these errors were encountered: