| 1 |
diff -up Ajaxterm-0.10/configure.initd.redhat.orig Ajaxterm-0.10/configure.initd.redhat
|
| 2 |
--- Ajaxterm-0.10/configure.initd.redhat.orig 2006-10-29 03:52:39.000000000 +0100
|
| 3 |
+++ Ajaxterm-0.10/configure.initd.redhat 2009-04-06 14:51:15.000000000 +0200
|
| 4 |
@@ -1,8 +1,8 @@
|
| 5 |
-#
|
| 6 |
+#!/bin/bash
|
| 7 |
# ajaxterm Startup script for ajaxterm
|
| 8 |
#
|
| 9 |
# chkconfig: - 99 99
|
| 10 |
-# description: Ajaxterm is a yadda yadda yadda
|
| 11 |
+# description: Ajaxterm is a web-based terminal
|
| 12 |
# processname: ajaxterm
|
| 13 |
# pidfile: /var/run/ajaxterm.pid
|
| 14 |
# version: 1.0 Kevin Reichhart - ajaxterminit at lastname dot org
|
| 15 |
@@ -14,18 +14,18 @@ if [ -f /etc/sysconfig/ajaxterm ]; then
|
| 16 |
. /etc/sysconfig/ajaxterm
|
| 17 |
fi
|
| 18 |
|
| 19 |
-ajaxterm=/usr/local/bin/ajaxterm
|
| 20 |
+ajaxterm=/usr/bin/ajaxterm
|
| 21 |
prog=ajaxterm
|
| 22 |
-pidfile=${PIDFILE-/var/run/ajaxterm.pid}
|
| 23 |
-lockfile=${LOCKFILE-/var/lock/subsys/ajaxterm}
|
| 24 |
+pidfile=/var/run/ajaxterm.pid
|
| 25 |
+lockfile=/var/lock/subsys/ajaxterm
|
| 26 |
port=${PORT-8022}
|
| 27 |
-user=${xUSER-nobody}
|
| 28 |
+user=${USER-ajaxterm}
|
| 29 |
RETVAL=0
|
| 30 |
|
| 31 |
|
| 32 |
start() {
|
| 33 |
echo -n $"Starting $prog: "
|
| 34 |
- daemon $ajaxterm --daemon --port=$port --uid=$user $OPTIONS
|
| 35 |
+ LANG=C daemon $ajaxterm --daemon --port=$port --uid=$user $OPTIONS
|
| 36 |
RETVAL=$?
|
| 37 |
echo
|
| 38 |
[ $RETVAL = 0 ] && touch ${lockfile}
|
| 39 |
@@ -54,7 +54,7 @@ case "$1" in
|
| 40 |
stop
|
| 41 |
;;
|
| 42 |
status)
|
| 43 |
- status python ajaxterm
|
| 44 |
+ status $prog
|
| 45 |
RETVAL=$?
|
| 46 |
;;
|
| 47 |
restart)
|
| 48 |
@@ -68,7 +68,7 @@ case "$1" in
|
| 49 |
fi
|
| 50 |
;;
|
| 51 |
*)
|
| 52 |
- echo $"Usage: $prog {start|stop|restart|condrestart}"
|
| 53 |
+ echo $"Usage: $prog {start|stop|status|restart|condrestart}"
|
| 54 |
exit 1
|
| 55 |
esac
|
| 56 |
|