service control - what am I doing wrong?

19 views
Skip to first unread message

JonY

unread,
Nov 12, 2014, 7:38:37 AM11/12/14
to puppet...@googlegroups.com
I put together a module and some files to control cassandra. When I change one of the dependent files in my module the cassandra service is stopped but not restarted. 

The service uses a std start/stop/status file and 'status' sets the appropriate exit code:

[root@cass1 security]# service cassandra status
Cassandra is running.
[root@cass1 security]# echo $?
0
[root@cass1 security]# service cassandra stop
Stopping Cassandra:                                        [  OK  ]
[root@cass1 security]# service cassandra status
Cassandra is stopped.
[root@cass1 security]# echo $?
1


Relevant line from module def:

User[ 'cassandra' ] -> Package[ 'nc' ] -> File[ '/etc/init.d/cassandra' ] -> File[ '/etc/security/limits.d/cassandra.conf' ] -> File[ '/etc/security/limits.d/90-nproc.conf' ] ~> Service[ 'cassandra' ]

All the various bits are declared in the module. 


What did I miss?

Felix Frank

unread,
Nov 13, 2014, 5:45:45 PM11/13/14
to puppet...@googlegroups.com
On 11/12/2014 01:38 PM, JonY wrote:
>
> What did I miss?

Not sure, but I recommend you use Puppet's --debug option and carefully
retrace Puppet's steps.

HTH,
Felix
Reply all
Reply to author
Forward
0 new messages