Dave Muhammad wrote:
halo all, nanya dikit neh, aku nemuin script Linux Suse dibawah ini,
rencana mau dipake di lingkungan fedora/redhat. ada bbrp perintah yang
tidak ada di redhat tempat saya, misal :

# Source SuSE config
. /etc/rc.status
# First reset status of this service
rc_reset
# Remember status and be verbose
rc_status -v
# exit
rc_exit

lengkapnya saya kopikan disini :
----

#! /bin/sh
#
# System startup script for the ERP testing daemon
#
### BEGIN INIT INFO
# Provides: ERP
# Required-Start: oracle_server
# Required-Stop: oracle_server
# Default-Start: 3 5
# Default-Stop: 0 1 6
# Description: ERP testing application server
### END INIT INFO

# Source SuSE config
. /etc/rc.status

ERP_HOME=/database/u02/app/Erp
ERP_BIN_DIR=$ERP_HOME/utils
ERP_START_BIN=$ERP_BIN_DIR/RUN_Server2.sh
ERP_STOP_BIN=$ERP_BIN_DIR/RUN_Server2Stop.sh

test -x $ERP_START_BIN || exit 5

. /etc/rc.status

# First reset status of this service
rc_reset

case "$1" in
start)
echo -n "Starting ERP daemon"
## Start daemon with startproc(8). If this fails
## the echo return value is set appropriate.

# NOTE: startproc return 0, even if service is
# already running to match LSB spec.
cd $ERP_BIN_DIR
$ERP_START_BIN > $ERP_HOME/console.log 2>&1 &
cd -

# Remember status and be verbose
rc_status -v
;;
stop)

jika di redhat perintah tersebut diganti apa ? mohon bantuannya, terimakasih.



coba di suse, cat /etc/rc.status
lalu lihat fungsi rc_status, rc_reset, rc_exit isinya ngapain, lalu coba disesuaikan di redhatnyaa.

--
AK

--
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id/milis

Kirim email ke