PDA

View Full Version : params problem in startscript


spas
25-04-2003, 01:03
hi,

i unpacked the server into
/usr/local/tss2/

if i start the server manualy in this dir with ./server_linux
everything wents ok

if i run the server on boot with /etc/init.d/tss
(the minimal startscript) the users that is registerd and the webadmin aren't working

the userproblem is fixed by starting the server with the param
-db=$path2dbfile

now i thought the webadmin prob would be fixed with

-httpdocs=$path2httpddir
but i was wrong

i get the error msg
/usr/local/tss2/httpdocs no such file or dir

but the directory is exactly there

do i use the parameter wrong
will the parameter fix my problem
or is there another way to fix it

my version is 2.0.18.32 Linux (i know OLD :)

excuse my bad english


spas

Renegat3
25-04-2003, 13:36
Hi!

Use a final slash in the path. It might help!

-httpdocs=/usr/local/tss/httpdocs/

Greets
R3

spas
26-04-2003, 12:15
i tried this but it didnīt work :(

the same error msg apears

"no such file or directory"

Lethe
26-04-2003, 15:20
What happens, I think, is the code always expects to be in the /root/ of the TSS directory, and fouls up paths.

What you could try is having a shell script in the root of your TSS directory which executes tss_minimal, and then from init.d execute the shell script.

Nick

Peter
26-04-2003, 23:14
or, you could just leave all those files in that cosy little directory, then you can just start it without any params :P

spas
27-04-2003, 22:36
thx

i wrote a script that change dir to /usr/local/tss2/
and the runs the local ./tss start (minimal)

now it works perfektly

only disadvantage, now i have du restart my ts with

/user/local/tss2/tss restart

not /etc/init.d/tss restart like all the other programms :(

but this is ok i think ;0)

big thx

your now happy spas

PS is know i can edit the script, that i could restart the tss from /etc/init.d/tss restart

but i can life with this ;)

Lethe
28-04-2003, 00:08
Yea, what you should be able to do is have a check in the script to see if TSS is running (ps -ax | grep server_linux)... if not, then just start, or if it is running (but maybe defunct) -> restart.

Nick

spas
28-04-2003, 01:48
Yeahhh

that works :0)

have to change dir befor restarting again but now it works!!!

thanks for the help

*smile*

Renegat3
02-05-2003, 02:38
Originally posted by Lethe
Yea, what you should be able to do is have a check in the script to see if TSS is running (ps -ax | grep server_linux)... if not, then just start, or if it is running (but maybe defunct) -> restart.

Nick
Dangerous!

"ps -ax|grep server_linux|grep -v grep > /dev/null" would be better, otherwise "grep" would find itself!
Or check for extisence of the PID file!

Greets
R3