2016-01-11 247 views
0

我想在系统启动时启动Rundeck。 我使用Ubuntu 14.04和手动我开始像这样:在系统启动时启动Rundeck

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 

它不会重新启动系统后推出。你有任何解释吗?

回答

0

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

相关问题