aboutsummaryrefslogtreecommitdiffstats
path: root/package/ser/patches/100-sc.patch
blob: 25ecb9b965d71263f1cecdbf855da46ce6482e4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
--- ser-0.8.14.orig/scripts/sc	2004-07-27 11:41:40.000000000 +0200
+++ ser-0.8.14/scripts/sc	2005-02-07 23:10:30.000000000 +0100
@@ -19,7 +19,7 @@
 # configuration for starting/stopping ser
 PID_FILE=/var/run/ser.pid
 SYSLOG=1 # 0=output to console, 1=output to syslog
-STARTOPTIONS= # for example -dddd
+STARTOPTIONS="-m 5"
 
 # ser's FIFO server
 if [ -z "$SER_FIFO" ]; then
@@ -338,11 +338,7 @@
 			if [ $# -eq 2 ] ; then
 				fifo_cmd ul_show_contact $UL_TABLE $2
 			elif [ $# -eq 1 ] ; then
-				printf "Dumping all contacts may take long: are you sure you want to proceed? [Y|N] "
-				read answer
-				if [ "$answer" = "y" -o "$answer" = "Y" ] ; then
-					fifo_cmd ul_dump
-				fi
+			        fifo_cmd ul_dump
 			else
 				echo "wrong number of params for usrloc show"
 				usage
@@ -590,7 +586,7 @@
 case $1 in
 
 	start)
-		DIR=`dirname $0`
+		DIR=/usr/sbin
 		echo
 		printf "Starting SER : "
 		if [ -r $PID_FILE ] ; then
@@ -612,6 +608,7 @@
 		printf "Stopping SER : "
 		if [ -r $PID_FILE ] ; then
 			kill `cat $PID_FILE`
+                        rm $PID_FILE
 			echo "stopped"
 		else
 			echo No PID file found!
@@ -621,10 +618,11 @@
 	;;
 
 	restart)
-	        DIR=`dirname $0`
+	        DIR=/usr/sbin
 		printf "Stopping SER : "
 		if [ -r $PID_FILE ] ; then
 			kill `cat $PID_FILE`
+                        rm $PID_FILE
 			echo "stopped"
 		else
 			echo No PID file found! SER problably not running