[chef] Re: writing sane cross-distro sysv init scripts with lsb/init-functions, possible?


Chronological Thread 
  • From: Ranjib Dey < >
  • To:
  • Subject: [chef] Re: writing sane cross-distro sysv init scripts with lsb/init-functions, possible?
  • Date: Fri, 10 Feb 2012 20:48:51 +0530


i think redhat-lsb is required. otherwise the its /etc/init.d/functions ,
shell functions available in /etc/init.d/functions are slightly different from what debian/ubuntu provides. also debian uses start-stop-daemon binary while redhat based distros uses the daemon function.

On Fri, Feb 10, 2012 at 7:00 PM, Bryan Berry < "> > wrote:
I have written a system v init script for Apache Tomcat using functions /lib/lsb/init-functions. Theoretically this same init script should work on Ubuntu as well, provided I swap out /etc/sysconfig/tomcat for /etc/default/tomcat 

Anybody know of any potential pitfalls of this approach? I imagine it is well-trod ground.

Does lsb/init-functions require 'redhat-lsb' be installed on all EL vms? and similarly does it come by default in Debian or require an additional package?







Archive powered by MHonArc 2.6.16.

§