LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Making Xitami Start Automatically (https://www.linuxquestions.org/questions/debian-26/making-xitami-start-automatically-68783/)

Wanderer 06-29-2003 03:50 AM

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

Salz 06-29-2003 04:08 AM

Ugly directory :cry:, 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 :eek: ). So try to change your startscript to include the path to the binary:
Code:

cd /xitami
./xitami -s


Wanderer 06-29-2003 04:20 AM

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.

Wanderer 06-29-2003 07:27 AM

I just got home, made the change....

Guess what?

It worked!!!!


All times are GMT -5. The time now is 08:53 AM.