Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] init not PID 1
@ 2011-04-09 16:34 Michael Burghart
  2011-04-09 18:54 ` Jason Curl
  2011-04-10  9:54 ` Gerhard Heift
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Burghart @ 2011-04-09 16:34 UTC (permalink / raw)
  To: buildroot

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

once again. I just found out that I cannot shutdown with init. It complains:

init: must be run as PID 1

(which is correct).
But why is it not 1?

- -- 
- --
cheers
- -micha-
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNoIqQAAoJEEMkp/gkis19YmcIAKYCwJENHCCiqBeg9vtKLnAY
GerMajKzrx6+LjsW8++YZKbNJUfxDUE+8gdGOUaWIB7e+tk1P1zLVSoXFeLe4lIa
sP1A972DRDqSPBiy0ksuRTD4N5a5prmQtbmT3HV34xHTDHxR3bjy6dql9wvZ6wTj
JmlupMbJ4f9VFMqrqyRn1abMw8EGyJFTe4vukU2FXpkUj6HZ3JpxIKY2QLG0i0rI
6fx+s/3399uGvL0ch7MZFGQGCpZZvFr/w0PJ79/28pip127RguO1/IBiVwsdW86v
MMD2n6Y2wGmDVGBeY3zxj5e8G7waoqCdJ/0sItOO2RKifx6DmoYz2rT8kpNwv9E=
=TbaH
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] init not PID 1
  2011-04-09 16:34 [Buildroot] init not PID 1 Michael Burghart
@ 2011-04-09 18:54 ` Jason Curl
  2011-04-09 22:48   ` Michael Burghart
  2011-04-10  9:54 ` Gerhard Heift
  1 sibling, 1 reply; 4+ messages in thread
From: Jason Curl @ 2011-04-09 18:54 UTC (permalink / raw)
  To: buildroot

On 09/04/2011 18:34, Michael Burghart wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> once again. I just found out that I cannot shutdown with init. It complains:
>
> init: must be run as PID 1
>
> (which is correct).
> But why is it not 1?
Did you not start it from the kernel, but perhaps from a shell script? 
The first process the kernel starts is PID 1.
> - -- 
> - --
> cheers
> - -micha-
> - --
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.16 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJNoIqQAAoJEEMkp/gkis19YmcIAKYCwJENHCCiqBeg9vtKLnAY
> GerMajKzrx6+LjsW8++YZKbNJUfxDUE+8gdGOUaWIB7e+tk1P1zLVSoXFeLe4lIa
> sP1A972DRDqSPBiy0ksuRTD4N5a5prmQtbmT3HV34xHTDHxR3bjy6dql9wvZ6wTj
> JmlupMbJ4f9VFMqrqyRn1abMw8EGyJFTe4vukU2FXpkUj6HZ3JpxIKY2QLG0i0rI
> 6fx+s/3399uGvL0ch7MZFGQGCpZZvFr/w0PJ79/28pip127RguO1/IBiVwsdW86v
> MMD2n6Y2wGmDVGBeY3zxj5e8G7waoqCdJ/0sItOO2RKifx6DmoYz2rT8kpNwv9E=
> =TbaH
> -----END PGP SIGNATURE-----
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110409/8986d5a1/attachment.p7s>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] init not PID 1
  2011-04-09 18:54 ` Jason Curl
@ 2011-04-09 22:48   ` Michael Burghart
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Burghart @ 2011-04-09 22:48 UTC (permalink / raw)
  To: buildroot

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 09.04.2011 20:54, schrieb Jason Curl:
> 
> (which is correct).
> But why is it not 1?
>> Did you not start it from the kernel, but perhaps from a shell script?

I have a look. Normally I start my kernel and thought the kernel keeps
track of the init process.


>> The first process the kernel starts is PID 1.

sure, but that normally is init. Don't know why it's not here.

- -- 
- --
cheers
- -micha-
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNoOIzAAoJEEMkp/gkis19OGMH/1wbC6T+EZTwIJI+Zp8lkyP+
yiOhlYyXz1DEDDDSMcYWW11DvWAtRW/ATCXgXB1pP2aBLzlJEFM6nCma06unWpCH
pNQSNuYtPHg77jMx7JhX89ovtq1XH9VZv9a/nzqomfyqAswXaGWIKhPl02R7yapj
k/R3H9iIpr4Y2vpO9trBPApYyHBJy3Ww8v3rS3vchDbSAq9bY26/F/m7ueXFJ2oY
+7Z3+ZGcU7pSExSSf/H7bAi937QYgpwc10HMng/Nwh8l1PJRhzbrXsXqRjtjPf05
veL1UqE+ka+DPfd1KMkpa8Utf0rZ6U1Z/5x5X6ybyo4FJVpL5WYS39pD1ebgLpI=
=iZ0t
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] init not PID 1
  2011-04-09 16:34 [Buildroot] init not PID 1 Michael Burghart
  2011-04-09 18:54 ` Jason Curl
@ 2011-04-10  9:54 ` Gerhard Heift
  1 sibling, 0 replies; 4+ messages in thread
From: Gerhard Heift @ 2011-04-10  9:54 UTC (permalink / raw)
  To: buildroot

On Sat, Apr 09, 2011 at 06:34:24PM +0200, Michael Burghart wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> once again. I just found out that I cannot shutdown with init. It complains:
> 
> init: must be run as PID 1

You have to use "halt" or "poweroff". Busybox does not support runlevels so you
cannot run "init 0" to shutdown your system.

> (which is correct).
> But why is it not 1?

This message comes from the new spawned init process, which gets a "usual" pid
like any other process. There should already be an init process with the pid 1.

> cheers
> - -micha-

Regards,
  Gerhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110410/88b3d11c/attachment.asc>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-10  9:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-09 16:34 [Buildroot] init not PID 1 Michael Burghart
2011-04-09 18:54 ` Jason Curl
2011-04-09 22:48   ` Michael Burghart
2011-04-10  9:54 ` Gerhard Heift

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox