View Full Version : Need Help Stoping server.
In ssh i do the command
./tss.minimal_startscript stop
but i notice i can still access my teamspeak server from teamspeak client, how do i make it so it doesnt run at all, i dont understand?
shutdown -h now
Then buy and read this book (http://www.amazon.com/exec/obidos/tg/detail/-/0072225629/qid=1075972465//ref=sr_8_xs_ap_i1_xgl14/103-5025207-1771050?v=glance&s=books&n=507846)
good tip, i've ordered it
:rolleyes:
Yeah, it's really good. I'd say it's a must-have for anybody who wants to operate Linux for running www-accessible services.
Does it give a good overview on issueing and managing rights?, 'cause that's what I am really struggling with :mad:
Guess that's the fate of every Linux n00b :D before he becomes an ex-n00b
Randall_James
07-02-2004, 08:59
actually that is a rather harsh way to kill the service. Shutting the server down? I think that I would do this
TYPE
ps -A
Locate the "server_linux" line and note the PID
TYPE
kill -9 PID#
Replace PID# with the actual number you found with previous command.
TYPE
ps -A (up arrow a couple times will also do the trick) and see that the "server_linux" line is now gone.
This will stop only the active process and not shut down your server.
Ciberputa
07-02-2004, 17:46
But, how could I shoot down the server?.
Randall_James
07-02-2004, 22:58
Originally posted by Ciberputa
But, how could I shoot down the server?.
shutdown -h now
is a server shutdown command
The -h switch is especially tough as if this is a remote server it is going to "halt" This means someone is going to need to physically restart it for you ......
shutdown -r would at least reboot the thing.
Randall_James
07-02-2004, 23:27
Originally posted by pim
Does it give a good overview on issueing and managing rights?, 'cause that's what I am really struggling with :mad:
Guess that's the fate of every Linux n00b :D before he becomes an ex-n00b
If this is a pure linux server then you should not have too much problem with rights.
drwxdrwdrw <--what you see for rights (777)
d rwx XXXXXX- this is the "User" set, the first charactor (d) indicates this is in fact a directory. There are a number of other tags for links etc but this is not of much concern.
XXXX rwx XXX <-- this is the "Group" rights
If you do a "ll" command or a "la" you will see 2 names for each folder or file. First one is the "User" the second is the "Group"
XXXX XXX rwx <-- finally this is the "Others" permissions. Everyone that does not fall into either the "User" or "Group" list gets these.
Now how do the numbers work in?
Permissions are set to binary bits
r w x - r w x - r w x
4 2 1 - 4 2 1 - 4 2 1 add them together to get setting
r = read
w= write
x=execute
644 would be rw-r--r--
To change any of these there are a couple ways.
chmod 755 [filename]
or
chmod u+x, g+x, o+x [filename]
The u+x translates to "user add execute"
You can also use the "minus" "-" to subtract rights
same result just different command line.
There is lots more but that is the bare bone basics.
James,
Thanks for this, this surely helps me discovering the ins and outs of the OS
Ciberputa
08-02-2004, 16:05
but I can't shoot down a server which is not mine :D, I could be killed for it :D :D
maybe try a shutdown instead then, thats no capital offence :D :cool:
Randall_James
09-02-2004, 00:57
Originally posted by pim
maybe try a shutdown instead then, thats no capital offence :D :cool: As a system admin if I caught you sending shutdown commands on a shared server you would find yourself looking for a new place to stay.
The fact that they even give you the rights to run TS is pretty suprising, I would not abuse this by issuing commands that could adversly affect other residents of the server. I would not call it capitol but it will surely get you booted off the server.
EDIT:
Oh and yes there is a log of everything you type into a shell session. I review my servers daily for guys trying to do stuff like that. Luckily I dont find them very often.
Ciberputa
10-02-2004, 03:13
All I can do is talking with the server admin, he's a reasonable guy, but I can't shutdown the server, I want to live
Randall_James
11-02-2004, 18:34
Sorry hadnt seen you fragmented this thread into another one, Bad posting habit by the way.
Dummer Sack
18-02-2004, 21:10
Try killall -TERM server_linux (That will shut down any TS servers you started).
If that does not work try killall -9 server_linux (Only do this if the server is not shutting down on the TERM signal).
No need to shut down the whole server.
It's a safety precaution. If someone doesn't know how to manually kill off some processhe should get some Linux basics first and run the server later.
If he's not the server admin and just a normal user he can't shut down the server with this command. If he can and he's a normal user, shame on the admin.
Yeah, i know, just another one of those "Elitist Linux User" posts, go ahead and bash.
But my basic point is still valid:
dedicated server + high-speed internet connection + inexperienced admin = desaster waiting to happen.
Good point.
another thing, i think the command "killall" is available on all linux distro but might NOT be available under other unix variant like BSD...
and if your using a bash like shell, you can use simply:
kill -9 `cat server.pid`
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.