Hi Henrik, On Monday 22 July 2013 12:19:52 [email protected] wrote: > as I have created scripts in /etc/rc.d for automatic start of programms > (and settings) these are not executed on startup. I can't use systemd > mechanism because if I use it our GUI application has no input from the > touch panel.
This is just a configuration issue. You must tell systemd to export some touchscreen and Qt related environment variables to all new processes it executes. > With (manual) start via /etc/rc.d script this works well. >From the old INITV days the script is located in "/etc/init.d" and a link exists in "/etc/rc.d/" pointing to this script. The name of the link defines the order to execute this script at runtime. > ls -l /etc/rc.d/ total 0 lrwxrwxrwx 1 jbe ptx 14 Jun 19 12:26 S00udev -> ../init.d/udev lrwxrwxrwx 1 jbe ptx 17 Jun 19 11:16 S01rc-once -> ../init.d/rc-once lrwxrwxrwx 1 jbe ptx 17 Jun 19 11:29 S16telnetd -> ../init.d/telnetd lrwxrwxrwx 1 jbe ptx 20 Jun 19 11:30 S21alsa-utils -> ../init.d/alsa-utils lrwxrwxrwx 1 jbe ptx 20 Jun 19 11:29 S26networking -> ../init.d/networking lrwxrwxrwx 1 jbe ptx 17 Jun 19 11:29 S98modules -> ../init.d/modules lrwxrwxrwx 1 jbe ptx 17 Jun 19 11:18 S99startup -> ../init.d/startup > What used to be done to have those scripts executed on startup? Install the script itself to "/etc/init.d" with the help of PTXdist's "install_copy/install_alternative" macro and create the link with "install_link": @$(call install_alternative, [...], 0, 0, 0644, /etc/init.d/yourscript) @$(call install_link, [...], ../init.d/yourscript, /etc/rc.d/S99yourscript) Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | Phone: +49-5121-206917-5128 | Peiner Str. 6-8, 31137 Hildesheim, Germany | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ | -- ptxdist mailing list [email protected]
