【发布时间】:2014-08-19 19:27:37
【问题描述】:
对于 Linux 安装程序,我们添加了一个用于自动启动服务的自定义启动器(见下图)。 我们正在使用 install4j v5.1.6。它在 /etc/init.d/myService.sh 中创建一个指向 /bin/myService.sh 的链接。
它在 Ubuntu 13 中正常工作。在系统重新启动时,服务自动启动正常。
在 Ubuntu 14 上这不起作用。安装后首次启动服务。但是在系统重启时,服务不会自动启动。
经过进一步调查,在 Ubuntu 14 上运行这些命令会启用自动启动。
after installation
cd /etc/init.d
sudo update-rc.d myService.sh defaults
在安装程序下,安装一个服务,自动启动设置为true。 这是 install4j 没有在 update-rc.d 注册的限制吗? 我们知道在哪些 Linux 系统上复制到 /etc/init.d/ 就足够了吗?
我们的脚本类似于:www.shayanderson.com/linux/add-startup-script-or-service-with-linux-on-bootup.htm。我们没有的是update-rc.d 和chkconfig。 install4j 负责将其复制到 /etc/init.d/
谢谢!
http://s27.postimg.org/o5bih55kz/Launcher_Configuration.png http://s3.postimg.org/icitxy96b/Launcher_Setup.png
【问题讨论】:
标签: install4j