LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-28-2004, 06:13 AM   #1
The_Spider
LQ Newbie
 
Registered: Apr 2004
Posts: 15

Rep: Reputation: 0
init on boot programs that need env vars


I am trying to get xtide to run on boot so i added the following commands to the /etc/rc.d/rc.local file

export HFILE_PATH=/usr/local/share/harmonics.tcd
xttpd 8080

This then makes xtide fail silently on startup with the error in the syslog

XTide Fatal Error: NOHOMEDIR The environment variable HOME is not set.


Why is the environment variable not set yet? Where should i be initialisng xttpd if not here?

Thanks
 
Old 04-28-2004, 06:20 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You should probably create an init script and have it launch after most other init scripts. Or perhaps it is just dependent on the $HOME variable because it is expected to be run as a user?


Håkan
 
Old 04-29-2004, 06:33 AM   #3
The_Spider
LQ Newbie
 
Registered: Apr 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Apparently that script is run last (according to the system V setup notes i read, and what i saw on my system) but ur second answer sounds good. Is the HOME var not set to something for root? How do i do that? Isit safe just to export home as some dir i want to?

Thanks
 
Old 04-29-2004, 07:30 AM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Well you could try on the command line before putting it in a script. Something like HOME=/home/test xttpd 8080, perhaps? It might be wise to create a test user for stuff like this...


Håkan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rbscrobbler not queueing/setting vars, then missing /bin/env kiwibird Linux - Software 1 10-04-2005 09:39 PM
env vars on Slackware 10 lvella Linux - General 1 11-01-2004 04:55 PM
Mount Second NTFS HD in Dual-Boot Env Muthax2001 Linux - Newbie 1 03-24-2004 10:14 AM
bash env vars alias's & .bashrc micxz Linux - General 8 10-08-2003 02:09 PM
where are the env variables set on boot? Pete Dogg Linux - Software 1 09-10-2003 02:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration