• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4579
  • Last Modified:

missing /lib/init/vars.sh

Hello,
I have an application that needs to startup on boot. When I install the application I get an error stating /lib/init/vars.sh No such file or directory. When contacting the developer he states it needs that file for reference of rcS system variables. I have two installs of CentOS 5.4 and neither of the two installs have this file. Googling it I see a number of end users getting the same error but no solutions. I was told the file is part of initscripts which is installed. Can I create the file or reinstall it?

Thank you.
0
kbmoney
Asked:
kbmoney
3 Solutions
 
liddlerCommented:
Yes you can just create the file, but you will need to know which variables to set in the file
0
 
nociSoftware EngineerCommented:
CentOS doesn't have rcS as a start/stop system.

Can the developer indicate what variables are needed for startup?
OTOH, the script most probably is run from the initscript, so you can lookat it.

somewhere the /lib/init/vars.sh is sourced, either source command or ". " (blank space) before the filename.

all variables that come after that that didn't exist before are candidates. $PATH f.e. allready exists.
0
 
Duncan RoeSoftware DeveloperCommented:
I downloaded initscripts-9.08.tar.bz2 from https://fedorahosted.org/releases/i/n/initscripts/ (dated 08-Mar-2010 20:48)
and there was no vars.sh in it. So you really must ask the developer for a copy
0
 
kbmoneyAuthor Commented:
Thanks all for the help. I am awaiting to hear from the developer on what variables I would need and will go from there.
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now