I created a startup script to start/restart/stop a group of applications. I used the lib /etc/init.d/functions
in my script. It is working well on my system, but it not working for my client; he is getting the error:
No such file or directory /etc/init.d/functions
Right now I don't know which linux distro my client uses. Is the init.d/functions
file different for different Linux distros? If so, how can I find it?
Best Answer
It's specific to whatever distribution you're running. Debian and Ubuntu have
/lib/lsb/init-functions
; SuSE has/etc/rc.status
; none of them are compatible with the others. In fact, some distributions don't use/etc/init.d
at all, or use it in an incompatible way (Slackware and Arch occur to me off the top of my head; there are others).