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