> For the complete documentation index, see [llms.txt](https://docs.editran.onesait.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.editran.onesait.com/documentacion-editran/ibm-editran-v5.3-iseries/proxy/onesait-editran-proxy-en-unix-y-windows/arranque-y-parada-de-unix.md).

# Arranque y parada de UNIX

Para arrancar y parar editran/Proxy ejecute EDIProxy start y EDIProxy stop.

ediproxy start –h156.122.34.12:8888

En los entornos UNIX ediproxy es el script que se lista a continuación.

\#!/bin/sh

\########################################################################

\# Direccion de Comunicaciones

\# (C) INDRA, S.A Enero, 1999.

\#

\# sh shell script de arranque/parada del sistema EditranPX.

\#

\#######################################################################

\#EDI\_IPC\_KEY\_BASE=8000

\#export EDI\_IPC\_KEY\_BASE

\#################

\#SUN, DEC y LINUX

LD\_LIBRARY\_PATH=\`pwd\`:$LD\_LIBRARY\_PATH

export LD\_LIBRARY\_PATH

\#################

\#AIX

LIBPATH=\`pwd\`

export LIBPATH

\#################

\#HP

SHLIB\_PATH=\`pwd\`

export SHLIB\_PATH

\#export X25\_IFNAME\_A=NXL0

\#export X25\_IFNAME\_B=NXL1

\#export SNCE\_DES\_LIB=/$CICSREGION/lib

\#export SNCE\_PROGRAM\_KEYS=/$CICSREGION/ftesbatch/NXEN2EDI

\#################

\#DEC DTE CLASS DEFINITION

\#X25\_DTE\_CLASS\_A=llc2-class-a

\#export X25\_DTE\_CLASS\_A

\#X25\_DTE\_CLASS\_B=llc2-class-b

\#export X25\_DTE\_CLASS\_B

\#################

\#SOCKS5 SERVER

\#SOCKS5\_SERVER=proxy.indra.es:1080

\#export SOCKS5\_SERVER

PROC\_STAR="ediproxyth logsrv"

PROC\_STOP="ediproxyth logsrv"

N=\`tput rmso\`

B=\`tput smso\`

if ps -ef > /dev/null 2>&1; then

PS="ps -ef"

else

PS="ps -x"

fi

\# arranque del proceso dado

startproc() {

if \[ -f $1 ]; then

echo '\*\*\* Arranque \*\*\*' - $USER - \`date\` >>$1.out

if \[ ! -z "$traza" ] ; then

EDI\_DEBUG=$1.traza

else

EDI\_DEBUG=

fi

export EDI\_DEBUG

$1 >> $1.out 2>&1 &

sleep 8

pid=\`$PS |

grep $! | grep $1 | grep -v grep |

awk '{print $2}'\`

if \[ "$pid" != "" ] ; then

echo "Proceso $1 arrancado."

return 0

else

echo "Proceso $1 NO ARRANCADO."

return 1

fi

fi

}

\# parada del proceso dado

stopproc() {

pid=\`$PS |

grep $1 | grep -v grep |

awk '{print $2}'\`

if \[ "$pid" != "" ] ; then

kill -2 $pid > /dev/null 2>&1

if \[ $? = 0 ] ; then

echo "Proceso $1 detenido."

return 0

else

echo "Proceso $1 NO DETENIDO."

return 1

fi

else

echo "Proceso $1 no encontrado."

fi

sleep 4

}

\# estado del proceso dado

statusproc() {

pid=\`$PS |

grep $1 | grep -v grep |

awk '{print $2}'\`

if \[ "$pid" != "" ] ; then

return 0

else

return 1

fi

}

\##################################

traza=

force=

while getopts tf opcion

do

case $opcion in

t) traza=1 ;;

f) force=1 ;;

\\?) printf "Opcion invalida\n" ;;

esac

done

shift \`expr $OPTIND - 1\`

case $1 in

'start')

echo "Arrancando sistema editran/PX..."

\# if \[ -z "$force" ] ; then

\# statusproc ediproxyth

\# if \[ $? = 0 ]; then

\# echo "${B}Hay otro sistema editran/PX arrancado${N}."

\# exit 1

\# fi

\# fi

for PROCESO in $PROC\_STAR;

do

startproc $PROCESO

done;

statusproc ediproxyth

if \[ $? = 0 ]; then

echo "Sistema editran/PX arrancado."

exit 0

else

echo "${B}Sistema editran/PX NO ARRANCADO${N}."

exit 1

fi

;;

'stop')

echo "Deteniendo sistema editran/PX..."

for PROCESO in $PROC\_STOP;

do

stopproc $PROCESO

done;

\# statusproc editranp

\# if \[ $? = 0 ]; then

\# echo "${B}Sistema editran/PX NO DETENIDO${N}."

\# exit 0

\# else

echo "Sistema editran/PX detenido."

exit 1

\# fi

;;

'status')

echo "Estado sistema editran/PX..."

statusproc ediproxyth

if \[ $? = 0 ]; then

echo "${B}Sistema editran/PX arrancado${N}."

exit 0

else

echo "Sistema editran/PX detenido."

exit 1

fi

exit 0

;;

\*)

printf "Usage: %s \[-t] \[-f] start|stop|status\n" $0

printf "\t-t\t Traza\n"

\# printf "\t-f\t Ignora otro editran/PX arrancado\n"

printf "\tstart\t Arranca el sistema editran/PX\n"

printf "\tstop\t Detiene el sistema editran/PX\n"

printf "\tstatus\t Obtiene el estado del sistema editran/PX\n"

exit 1

;;

esac


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.editran.onesait.com/documentacion-editran/ibm-editran-v5.3-iseries/proxy/onesait-editran-proxy-en-unix-y-windows/arranque-y-parada-de-unix.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
