I am trying to migrate an init.d script from centos 6.6 server to ubuntu 14.04. Centos machine start, status, stop commands are,daemon --pidfile=/path/to/pidfile /path/to/daemon/scriptstatus -p /path/to/pidfile /path/to/daemon/scriptkillproc -p /path/to/pidfile /path/to/daemon/scriptstart command works good in its original form on ubuntu 14.04 but the other two functions, status, killproc are not defined on ubuntu distros. What is the equivalent of these commands in ubuntu machines?
status, killproc commands in Ubuntu
ubuntu;init.d
On my Ubuntu system, killproc is provided by /lib/lsb/init-functions.http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptfunc.htmlHave you tried putting. /lib/lsb/init-functionsnear the top of your init script?$ dpkg -S /lib/lsb/init-functionslsb-base: /lib/lsb/init-functions$ dpkg -S /sbin/statusupstart: /sbin/status$ apt-cache show lsb-basePackage: lsb-basePriority: required