From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: =?iso-8859-15?q?J=FCrgen_Beisert?= Date: Mon, 22 Jul 2013 12:57:41 +0200 References: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F2D13@HISCMAIL01.HeiLab.loc> In-Reply-To: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F2D13@HISCMAIL01.HeiLab.loc> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201307221257.41025.jbe@pengutronix.de> Subject: Re: [ptxdist] rc.d script Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Henrik.Kraft@heidolph.de Hi Henrik, On Monday 22 July 2013 12:19:52 Henrik.Kraft@heidolph.de 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 define= s = 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/S99yourscri= pt) Regards, Juergen -- = Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 | Linux Solutions for Science and Industry =A0 =A0 =A0| Phone: +49-5121-20691= 7-5128 | Peiner Str. 6-8, 31137 Hildesheim, Germany =A0 =A0| Fax: =A0 +49-5121-20691= 7-5555 | Amtsgericht Hildesheim, HRA 2686 =A0 =A0 =A0 =A0 =A0 =A0 =A0| http://www.pe= ngutronix.de/ =A0| -- = ptxdist mailing list ptxdist@pengutronix.de