在系统启动时启动Rundeck

时间:2016-01-11 12:22:22

标签: ubuntu rundeck

我想在系统启动时启动Rundeck。 我正在使用Ubuntu 14.04并手动启动它:

cd $RDECK_BASE    
java -XX:MaxPermSize=256m -Xmx1024m -jar rundeck-launcher-2.6.2.jar

我在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.

cd $RDECK_BASE    
java -XX:MaxPermSize=256m -Xmx1024m -jar rundeck-launcher-2.6.2.jar
exit 0

系统重启后无法启动。你有什么解释吗?

1 个答案:

答案 0 :(得分:0)

为什么你不使用.deb文件来安装它和init脚本来启动它。 得到它LINK

相关问题