[RedHat] Eccp als service starten

Pagina: 1
Acties:

  • Z!oN
  • Registratie: April 2002
  • Laatst online: 03-01-2025

Z!oN

Team Coldfusion

Topicstarter
Dit moet allemaal als root gebeuren:

maak het bestand: /etc/rc.d/init.d/eccp aan en zet er het volgende in:

code:
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
#!/bin/sh
#
# chkconfig: 345 99 10
# description: Starts and stops eccp


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# path naar eccp executable
ECCP_HOME=/home/reggy/eccp/eccp109-131_linux-src
ECCP=eccp109-x86lCL

# See how we were called.
case "$1" in
  start)
        echo -n "Startin eccp: "
        cd $ECCP_HOME
        $ECCP_HOME/$ECCP & > /dev/null
        echo
        ;;
  stop)
        echo -n "Shutting eccp: "

        eccppids=`ps afx | grep $ECCP | grep -v grep | awk '{print $1}'`
        for pid in $eccppids; do
                kill -TERM $pid
        done
        echo
        ;;
  restart)
        echo -n "Restarting eccp: "
        $0 stop
        $0 start
        echo "done."
        ;;
  *)
        echo "Usage: eccp{start|stop|restart|status}"
        exit 1
esac


en daarna is het een kwestie van "als root"

code:
1
chkconfig eccp on


en bij de volgende start doet ie het als het goed is :)

Suggesties zijn altijd welkom natuurlijk :D

http://www.teamcoldfusion.nl


  • NG
  • Registratie: December 2000
  • Niet online

NG

bzzzzt.


  • sus
  • Registratie: September 2000
  • Laatst online: 09:13

sus

is druk :+