1 (edited by 2011-12-13 12:30:17)

Topic: problem with the startup server

Hi guys,help me please sad
create  file /etc/init.d/teedm
with content:

#! /bin/sh
 if [ -x /home/tee/dm/teeworlds_srv ]; then
 echo "Starting teedm: /home/tee/dm/teeworlds_srv"
 cd /home/tee/dm
 su tee -c  "screen  -S  teedm  /home/tee/dm/teeworlds_srv -f /home/tee/dm/config.cfg"
fi

than create link,ln -s /etc/rc.2/teedm /etc/init.d/teedm
after error,

Cannot open your terminal '/dev/pts/0' - please check.

OS linux debian
help sad

to another user is working, what could it be?

2

Re: problem with the startup server

So you are passing the screen command to the console of the user 'tee' and the error occures? And when you choose another user, it is working?
Open the file /etc/passwd and scan for the line starting with the user's name.
It should look somehow like this:
tee:x:1234:1234:tee:/home/tee:/bin/bash
The last part after the colon (:) is the interesting part. In the example I wrote /bin/bash, but it can also be /bin/sh or /bin/false (or something else).
If it is /bin/bash oder /bin/sh, I don't know what causes the error.
If it is /bin/false or something else, try to change it to /bin/bash (you need to be root).
I'm not sure, but you may need to reboot your debian. But before try if it's already working.

3

Re: problem with the startup server

That is not an init.d script. Have a look at the skeleton one and I recommend that you change yours. Or just use this one: http://www.teeworlds.com/forum/viewtopic.php?id=8613

4

Re: problem with the startup server

thanks guys big_smile