From: <Henrik.Kraft@heidolph.de>
To: jbe@pengutronix.de
Subject: Re: [ptxdist] rc.d script
Date: Mon, 22 Jul 2013 11:08:59 +0000 [thread overview]
Message-ID: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F2D52@HISCMAIL01.HeiLab.loc> (raw)
In-Reply-To: <201307221257.41025.jbe@pengutronix.de>
Thanks Juergen,
I don't know which variables this should be and as I need to set gain and offset 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 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
ptxdist@pengutronix.de
next prev parent reply other threads:[~2013-07-22 12:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-22 10:19 Henrik.Kraft
2013-07-22 10:25 ` Josef Holzmayr
2013-07-22 10:37 ` Henrik.Kraft
2013-07-22 10:37 ` Alexander Dahl
2013-07-22 10:57 ` Jürgen Beisert
2013-07-22 11:08 ` Henrik.Kraft [this message]
2013-07-22 12:05 ` Henrik.Kraft
2013-07-22 14:03 ` Jürgen Beisert
2013-07-22 15:44 ` Henrik.Kraft
2013-07-22 13:25 Henrik.Kraft
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5DDDC2AE1D40D045B973C3CAA4D4CCC74F2D52@HISCMAIL01.HeiLab.loc \
--to=henrik.kraft@heidolph.de \
--cc=jbe@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox