English   German
  #1  
Old 07-08-2002, 02:35
ErwinK ErwinK is offline
-= TeamSpeak User =-
 
Join Date: Aug 2002
Location: Netherlands
Posts: 3
ErwinK is on a distinguished road
Question SuSE startup script

Hi all,

Great program.

I've got two modifications for your SuSE linux startup script:

1. this is a minor typo:
echo Stopping TeamSpeak Sercer Daemon

should be:
echo Stopping TeamSpeak Server Daemon

2. a timer problem:
When using the restart option of the SuSE startup script it will fail to start the server. This is because of an 2 sec wait in the program. So if you add a line like this in the stop phase:

AFTER:

kill -TERM `cat /var/run/tss.pid`

ADD
sleep 3

So tss can fully stop and afterwards tss can start automatically.

I hope you can use this info.

Last edited by ErwinK; 07-08-2002 at 02:41.
Reply With Quote
  #2  
Old 07-08-2002, 02:42
ErwinK ErwinK is offline
-= TeamSpeak User =-
 
Join Date: Aug 2002
Location: Netherlands
Posts: 3
ErwinK is on a distinguished road
the script after modification

#! /bin/bash
# Copyright (c) 2001 TeamSpeak team All rights reserved.
#
# Author: Niels Werensteijn 2001
#
# /etc/init.d/tss
#
### BEGIN INIT INFO
# Provides: tss
# Required-Start: $network
# Required-Stop:
# Default-Start: 3 5
# Default-Stop:
# Description: TeamSpeakServer
### END INIT INFO

. /etc/rc.status

rc_reset

case "$1" in
start)
echo Starting TeamSpeak Server Daemon
/usr/bin/tss -INI=/etc/tsserver.ini -LOG=/var/log/tss.log -
PID=/var/run/tss.pid > /dev/null
rc_status -v
;;
stop)
echo Stopping TeamSpeak Server Daemon
kill -TERM `cat /var/run/tss.pid`
sleep 3
rc_status -v
;;
restart)
$0 stop && $0 start || return=$rc_failed
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


All times are GMT +1. The time now is 21:02.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Add to Bookmarks   |   Printview   |   Contact Us   |   Legal Notices