I'm trying to create an init script for a web application I want to run on system start up. Looking through the skeleton script provided by my OS (/etc/init.d/skeleton
), I saw this:
# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
What does this mean? If I want /usr/bin
included in the path, do I have to do something to ensure that mountnfs.sh
gets run first?
And where is mountnfs.sh
located? I don't see it in my init.d
directory.
You can locate which package contains a file using:
Check if it is installed:
The LSB header of that file is informative:
So if you don't use any NFS mount point, you can safely ignore that comment