on 08-04-2008 5:24 PM
How to setup - restart/stop the SMD agent automatically when the server is restarted.
Thanks in advance
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What OS are you using?
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can write a small script and put that in your legacy init sequence like
#!/bin/ksh
# /etc/init.d/startsaponboot
#
# start sap system on BOOT
#
# 29.06.2005 md initial version
#
LOGFILE=/var/adm/startsaponboot.log
LINE="-----------------------------------------------"
DATE=`date`
echo $LINE >> $LOGFILE
echo $LINE >> $LOGFILE
echo $DATE >> $LOGFILE
echo "Starting Listener..." >> $LOGFILE
su - orapai -c "lsnrctl start"
echo $LINE >> $LOGFILE
echo "Starting SAP-System..." >> $LOGFILE
su - paiadm -c "startsap"
put that as "startsaponboot" to /etc/init.d and then link it to the runlevels:
cd /etc/rc3.d
ln -s ../init.d/startsaponboot S99startsaponboot
Then do a
touch /var/adm/startsaponboot.log
and reboot the machine to check if it works
Markus
In that case the start of the ccms agents will also work until the next reboot - when inittab is rebuilt.
Solaris 10 has the SMF framework to do exactly that - starting and controlling services, restart them on failure etc.
A good example is here:
http://www.sun.com/bigadmin/features/articles/smf_example.jsp?feed=RSS
It's a bit of work to set that up initially but you have a very good control about the services.
Markus
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.