Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #303

Re: How to automagically run an application when entering runlevel S

From Rainer Weikusat <rweikusat@mssgmbh.com>
Newsgroups comp.os.linux.development.apps
Subject Re: How to automagically run an application when entering runlevel S
Date 2011-12-07 15:37 +0000
Message-ID <87mxb475r7.fsf@sapphire.mobileactivedefense.com> (permalink)
References <jbo0og$9ok$1@nntp.ts.fujitsu.com>

Show all headers | View raw


Josef Moellers <josef.moellers@ts.fujitsu.com> writes:

[...]

> The application runs in runlevel S and when runlevel S was entered on
> the old image, /.profile was run and that contains a call to our
> application.
> On the new image, this does not happen!
> Unfortunately, the guy who built the old image is no more available.
> Does anyone have an idea where to tweak to run /.profile when entering
> runlevel S?

For sysvinit, a corresponding line could be added to /etc/inittab eg

	a0:1:wait:/.profile

in a suitable place (IOW below the entries executing rc scripts,
[untested]).

Back to comp.os.linux.development.apps | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How to automagically run an application when entering runlevel S Josef Moellers <josef.moellers@ts.fujitsu.com> - 2011-12-07 16:29 +0100
  Re: How to automagically run an application when entering runlevel S Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-12-07 15:37 +0000
    Re: How to automagically run an application when entering runlevel S André Gillibert <MetaEntropy.removeThis@gmail.com> - 2011-12-07 19:21 +0100
    Re: How to automagically run an application when entering runlevel S Josef Moellers <josef.moellers@ts.fujitsu.com> - 2011-12-08 16:25 +0100

csiph-web