From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from thebe.hi.pengutronix.de ([2001:6f8:1178:2:5e26:aff:fe2b:7cc4]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1V1Fhy-0001aH-G5 for ptxdist@pengutronix.de; Mon, 22 Jul 2013 14:59:22 +0200 Resent-To: ptxdist@pengutronix.de Resent-Message-ID: <201307221500.12071.Henrik.Kraft@heidolph.de> From: Date: Mon, 22 Jul 2013 11:08:59 +0000 Message-ID: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F2D52@HISCMAIL01.HeiLab.loc> References: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F2D13@HISCMAIL01.HeiLab.loc> <201307221257.41025.jbe@pengutronix.de> In-Reply-To: <201307221257.41025.jbe@pengutronix.de> Content-Language: de-DE MIME-Version: 1.0 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-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: jbe@pengutronix.de Thanks Juergen, I don't know which variables this should be and as I need to set gain and o= ffset for the touch panel I need to have a script executed so I will switch= back to good old SystemV Init. Do you know if I can have systemd and init scripts in parallel if I choose = systemd with ptxdist and create /etc/init.d manually? This is just a configuration issue. You must tell systemd to export some to= uchscreen and Qt related environment variables to all new processes it exec= utes. > 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 e= xists 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 p= tx 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 "inst= all_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-206917-5128 | Peiner Str. 6-8, 31= 137 Hildesheim, Germany =A0 =A0| Fax: =A0 +49-5121-206917-5555 | Amtsgerich= t Hildesheim, HRA 2686 =A0 =A0 =A0 =A0 =A0 =A0 =A0| http://www.pengutronix.= de/ =A0| -- = ptxdist mailing list ptxdist@pengutronix.de