/[pkgs]/devel/Ajaxterm/Ajaxterm-init.patch
ViewVC logotype

Contents of /devel/Ajaxterm/Ajaxterm-init.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download) (as text)
Mon Apr 6 12:57:00 2009 UTC (7 months, 2 weeks ago) by ruben
Branch: MAIN
CVS Tags: F-12-split, F-11-split, Ajaxterm-0_10-9_fc12, Ajaxterm-0_10-8_fc11, HEAD
Changes since 1.1: +11 -2 lines
File MIME type: text/x-patch
* Mon Apr 06 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.10-8
- Fix ajaxterm homedir
- Add status command to init script
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

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2