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/script
status -p /path/to/pidfile /path/to/daemon/script
killproc -p /path/to/pidfile /path/to/daemon/script
start 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?