Say I have a Unix wrapper that is used to start/stop/etc the apache web server. The name of the wrapper is runapache and runs off of a /software/bin/ directory. I accepts typical start/stop/restart directives, but also some custom ones to recreate http.conf files and such. Why you need this runapache wrapper you ask? Well, it’s a long story, but I have to live with that company decision I didn’t make and make it work
Based on http://docs.opscode.com/resource_service.html I thought I could create a custom service with something like:
service “runapache” do
supports :restart => true, :stop => true
restart_command "runapache kill"
However, when I try to make use of this service I get an error saying runapache does not exist in /etc/init.d/ I understood init_command should be used to determine an alternate location. What am I missing? I am using Chef Version: 10.18.2