[求助]rc.local添加脚本未执行

sh/bash/dash/ksh/zsh等Shell脚本
回复
xiaoai113
帖子: 2
注册时间: 2011-06-27 23:06

[求助]rc.local添加脚本未执行

#1

帖子 xiaoai113 » 2011-06-27 23:10

我想要实现开机之后自动启动一个jenkins的slave登入程序
在rc.local中间加入了代码
但是开机之后并未运行
该命令涉及到网络了
下面是我的 rc.local
我直接运行这个命令或者是sh rc.local是成功的

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

#start jenkins
javaws http://192.168.1.24:8080/computer/slave ... agent.jnlp

exit 0
xiaoai113
帖子: 2
注册时间: 2011-06-27 23:06

Re: [求助]rc.local添加脚本未执行

#2

帖子 xiaoai113 » 2011-06-27 23:58

当然不是 - -路由上的阿。。。
tusooa
帖子: 6548
注册时间: 2008-10-31 22:12
系统: 践兔
联系:

Re: [求助]rc.local添加脚本未执行

#3

帖子 tusooa » 2011-06-28 9:45

代码: 全选

sudo /etc/rc.local
输出贴上来

代码: 全选

] ls -ld //
回复