其他重新启动这些进程的启动脚本调用该脚本。
有关脚本的更多信息,请参阅设置脚本以自动启动进程和设置脚本以自动停止进程。
#!/bin/sh
# IBM Rational Synergy Startup/Shutdown Script
#
CCM_HOME=$CCM_HOME
PATH=$CCM_HOME/bin:$PATH
export CCM_HOME PATH
case $1 in
'start')
# Do on the router system
su ccm_root -c ccm_start_daemons
# Do on each database server machine
su ccm_root -c ccm_objreg
su ccm_root -c ccm_server
;;
'stop')
# Do on the router system
su ccm_root -c ccm_stop_daemons
*)
echo "usage: /etc/init.d/rational {start|stop}"
;;
esac
UNIX(基于 Informix):
#!/bin/sh
# IBM Rational Synergy Startup/Shutdown Script
#
CCM_HOME=$CCM_HOME
PATH=$CCM_HOME/bin:$PATH
export CCM_HOME PATH
case $1 in
'start')
# Do on the router system
su ccm_root -c ccm_start_daemons
# Do on each database server machine
su informix -c ‘ccmsrv online -y -s servername'
su ccm_root -c ccm_objreg
su ccm_root -c ccm_server
;;
'stop')
# Do on the router system
su ccm_root -c ccm_stop_daemons
# Do on each database server machine
su informix -c ‘ccmsrv offline -y -s servername ;;
*)
echo "usage: /etc/init.d/rational {start|stop}"
;;
esac