mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Jürgen Beisert" <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Henrik.Kraft@heidolph.de
Subject: Re: [ptxdist] rc.d script
Date: Mon, 22 Jul 2013 12:57:41 +0200	[thread overview]
Message-ID: <201307221257.41025.jbe@pengutronix.de> (raw)
In-Reply-To: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F2D13@HISCMAIL01.HeiLab.loc>

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 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

  parent reply	other threads:[~2013-07-22 10:57 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 [this message]
2013-07-22 11:08   ` Henrik.Kraft
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=201307221257.41025.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=Henrik.Kraft@heidolph.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