- 论坛徽章:
- 0
|
装的是tightvnc,我想让它开机wgob用户启动,rc.local如下:
---------------------
# $OpenBSD: rc.local,v 1.39 2006/07/28 20:19:46 sturm Exp $
# Site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode. For actions
# which should be done BEFORE your system has gone into securemode
# please see /etc/rc.securelevel.
echo -n 'starting local daemons:'
# Add your local startup actions here.
if [ -x /usr/local/sbin/pure-ftpd ]; then
echo Starting Pure-FTPd
/usr/local/sbin/pure-config.pl /etc/pure-ftpd.conf
fi
if [ -x /usr/local/bin/vncserver ]; then
echo Starting Vncserver for wgob
su wgob -c '/usr/local/bin/vncserver :1'
fi
-------------------
可是没有效果,pure-ftpd启动正常,vncserver路径是正确的,手动在终端输入命令可以启动,请高手指教!
[ 本帖最后由 For.you 于 2009-3-19 10:38 编辑 ] |
|