init not PID 1
-----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-----
Quoted 11 lines · Michael Burghart
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Hi,
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.
Quoted 9 lines
- --
- --
cheers
- -micha-
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
Quoted 13 lines
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>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 09.04.2011 20:54, schrieb Jason Curl:
Quoted 4 lines
(which is correct).
But why is it not 1?Quoted 1 line
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.
Quoted 1 line
Quoted 1 line
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-----
Quoted 8 lines · Michael Burghart
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Hi,
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.
Quoted 2 lines
(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.
Quoted 2 lines
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>