LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-29-2003, 03:50 AM   #1
Wanderer
LQ Newbie
 
Registered: Dec 2001
Location: Phoenix, AZ
Distribution: Debian Woody
Posts: 12

Rep: Reputation: 0
Making Xitami Start Automatically


Okay folks, here's one I can't solve no matter what. I've even used a kazillion search engines to locate a hint.

I downloaded and built Xitami 2.5b4 using their build script. The server runs flawlessly if I do switch to the directory for it and run:

xitami -s

I read everything I could about starting it up, replacing apache's start up config in /etc/init.d and /etc/rc2.d with my own.

When I use init or reboot, the error comes up, "command not found".

It's installed in /xitami - xitami in /etc/init.d is simply:

cd /xitami
xitami -s

The symbolic link in /etc/init.d/rc2.d for /etc/init.d/xitami is S95xitami (instead of S91).

What am I doing wrong and how can I fix this? I really don't want to log in and start it manually each time!

TIA

Richard
 
Old 06-29-2003, 04:08 AM   #2
Salz
LQ Newbie
 
Registered: Jun 2003
Distribution: Debian
Posts: 23

Rep: Reputation: 15
Ugly directory , usually you put this into /usr/local/xitami or /opt/xitami. But that shouldn't be the reason why it is not working.
Just a guess, the program you want to start is /xitami/xitami, and on bootup you do not have . (the current directory) in your $PATH (which you really never should have but today most distributions put it that way ). So try to change your startscript to include the path to the binary:
Code:
cd /xitami
./xitami -s
 
Old 06-29-2003, 04:20 AM   #3
Wanderer
LQ Newbie
 
Registered: Dec 2001
Location: Phoenix, AZ
Distribution: Debian Woody
Posts: 12

Original Poster
Rep: Reputation: 0
Actually, I have it installed in both /xitami and /usr/local/xitami, but yes, that wouldn't make a difference.

I'm at work, and the machine's at home, so I can't try your suggestion of using ./xitami right now... but I believe I tried it once, the first time I built it. Umm perhaps not. I'll try it again when I get home.
 
Old 06-29-2003, 07:27 AM   #4
Wanderer
LQ Newbie
 
Registered: Dec 2001
Location: Phoenix, AZ
Distribution: Debian Woody
Posts: 12

Original Poster
Rep: Reputation: 0
I just got home, made the change....

Guess what?

It worked!!!!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 06:02 AM
Removing Xitami Post Modern Linux - Distributions 3 09-03-2005 08:45 PM
Making X start automatically rwescoat Slackware 3 10-06-2004 06:37 PM
start apps automatically on start up? chunlee Linux - Newbie 3 09-04-2004 12:58 PM
PHP with Xitami z_darius Linux - Newbie 0 05-24-2004 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:16 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration