Launch service does not start automatically on Ubuntu 14.04

For the Linux installer, we added a custom launcher to automatically start the service (see the picture below). We are using install4j v5.1.6. It creates a link in /etc/init.d/myService.sh that points to /bin/myService.sh.

It works correctly in Ubuntu 13. When you restart the system, the service automatically starts correctly.

This doesn't work on Ubuntu 14. The service is started for the first time after installation. But when the system restarts, the service does not start automatically.

On further investigation, running these commands on Ubuntu 14 enabled them to start automatically.

   after installation
   cd /etc/init.d
   sudo update-rc.d myService.sh defaults

      

In the installer section, install the service, auto-start is set to true. Is this a limitation of install4j that it doesn't register with update-rc.d? Do we know on which Linux systems the /etc/init.d/ file can be copied?

Our script is similar to: www.shayanderson.com/linux/add-startup- script-or-service-with-linux-on-bootup.htm. What we don't have is update-rc.d and chkconfig. And install4j does the task of copying it to /etc/init.d/

Thank!

http://s27.postimg.org/o5bih55kz/Launcher_Configuration.png http://s3.postimg.org/icitxy96b/Launcher_Setup.png

+3


source to share


1 answer


Since 5.1.x, install4j does not integrate services into runlevels, it creates a symbolic link to the beginning of the script in /etc/init.d.



Integrating it into runlevels must be done manually, for example by calling update-rc.d or any other tool provided by your particular distribution.

+2


source







All Articles