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?