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?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e2446d6e-ecae-4a3d-b102-b38f0d0c1c58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to