1. 在/etc/init.d目录下,建立一个教本:
#!/bin/sh
# Startup Novas Debussy Licence File
#
# If editting this file manually, be sure to set values for INSTALL_DIR,
# LICENSE_FILE, and optionally for LOG_FILE and LMGRD_OPTS
#
INSTALL_DIR='/home/app/novas/debussy/bin'
LICENSE_FILE='/home/twang/license/license.novas'
LOG_FILE='/usr/tmp/debussy.log'
LMGRD_OPTS=''
LOG_DIR=`echo $LOG_FILE | sed -e 's?.*/??g'`
echo
echo "Starting Debussy license daemons"
echo
if [ -r ${INSTALL_DIR}/lmgrd ]; then
rm -f /usr/tmp/lockdebussy
if [ -r ${LOG_FILE} ]; then
mv ${LOG_FILE} ${LOG_FILE}.`date|awk '{printf "%s.%02d",$2,$3}'`
(echo " OLD log files in ${LOG_DIR}:")>/dev/console
( ls -l ${LOG_FILE}.* )>/dev/console
fi
${INSTALL_DIR}/lmgrd ${LMGRD_OPTS} -c ${LICENSE_FILE} -l ${LOG_FILE} &
else
echo ""
echo " Cannot locate the license manager daemon (lmgrd)."
echo ""
echo " Please verify that the necessary symbolic links exist before proceeding."
echo " For more information about licensing utilities, see the"
echo " 'Software Installation and License Management User Guide'."
echo ""
fi
exit 0
2. 在/etc/rc.d/rc3.d目录下建立一个链接指向上述文件,文件的规则是S##文件名
No comments:
Post a Comment