|
|

楼主 |
发表于 2006-7-4 12:03:06
|
显示全部楼层
竟然实现了,过程如下:
1.在/home/notes 目下建立脚本domino.sh(当然也可以在其它目录)
[notes@rhce ~]# vi domino.sh
#!/bin/bash
# Program
# Let's to run Domino Service
# History
# 2006/07/03 TMeng First release
PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/notes/b
in:/opt/IBMJava2-141/bin:/opt/IBMJava2-141/jre/bin:/opt/ibm/lotus/bin
export PATH LD_ASSUME_KERNEL=2.2.5
unset USERNAME
cd /var/notesdata/
server
exit 0
#end
# server 为domino程序的执行文件,/var/notesdata为主程序目录
2./etc/rc.d/rc.local添加自动运行脚本
[root@rhce tanmeng]# vi /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
su - -c "sh /home/notes/domino.sh" notes
# 添加以上脚本,
# su "-" 参数为继承 notes的相关环境变量
******************************************************
在这里感谢spirngwind426提供的宝贵建议,
系统启动后notes用户默认从tty1自动登陆,并运行domino,但是本地系统控制台tty2~7 均无法登陆,无login提示符:)
但这已达到目地,管理可以从pts控制台实现:) |
|