我想在系统启动时启动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
系统重启后无法启动。你有什么解释吗?