3
votes
1answer
93 views

Minimal Linux with kernel and BusyBox: /etc/inittab is ignored, only /init is executed

I managed to create a small and fully functional live Linux CD which contains only kernel (compiled with default options) and BusyBox (compiled with default options + static, all applets present, ...
2
votes
0answers
122 views

Server won't boot, kernel panic - not syncing

After a reboot of a CentOS 6.2 server we are getting a kernel panic with the following error: Kernel panic - not syncing: Attempted to kill init! Panic occurred, switching back to text console ...
1
vote
1answer
65 views

Dedicated-purpose, single application linux boxes

I'm designing an app that will be deployed/installed to a linux machine (perhaps Archlinux, but could be any distro and in fact I would actually prefer something lightweight and inside the Debian ...
4
votes
1answer
119 views

How does init determine which devices to modprobe?

I'm building a totally custom initramfs for a netbooting project and in the process learning a lot about it, but I'm a little puzzled by the loading of modules. I know modprobe can be used to load ...
3
votes
1answer
153 views

When would you use pivot_root over switch_root?

I'm wanting to understand the Linux init process better in order to netboot a system over ceph rather than nfs. In the process I've come across two forms of switching root. One called switch_root, ...
3
votes
1answer
128 views

Init script leaves thousands of defunct processes

My problem is that I have an init script that is generating thousands of defunct bash processes. My goal is to have a program called "fr24feed" in its own screen session on boot. After looking at ...
2
votes
1answer
97 views

Check `fsck` automatically

I need to run fsck so that it automatically fixes problems (i.e., fsck -y). And because I am using "systemd" instead of "init" in the linux system, I cannot modify the /etc/default/rcS. So what ...
0
votes
0answers
47 views

Which getty should I use for /dev/tty1 - tty6 text consoles in linux, agetty or something other

I'm configuring LFS linux and I want to select right "getty" for /etc/inittab to handle text consoles /dev/tty1 - /dev/tty6 (the text consoles handled by linux kernel, with output on first display). ...
1
vote
0answers
95 views

How to determine which init system is used? [duplicate]

Is there a way to determine which init system is being used in Linux? (such as sysvinit, upstart, systemd, etc.) I don't care if it can be programmatically determined, I just want to know how I can ...
0
votes
0answers
15 views

Restore system with no execute permissions for bash and chmod [duplicate]

Good day everyone! One of my friends asked me a question: how to restore an unbootable Linux system (let it be CentOS or whatever) in the following situation: no execute permissions for bash no ...
0
votes
1answer
84 views

How are the services exactly starting in (K)Ubuntu?

I have latest Kubuntu. I have installed mysql. I was looking into the /etc/init. I see the following: In /etc/init/mysql.conf description "MySQL Server" ...
0
votes
2answers
450 views

Switch between runlevel with init command in bash script … init 3 to init 5

I need your help with bash script that I’m trying to build. To keep things simple I will make it short: The script starts running once it’s gets to run level 5 so i copied the script to ...
0
votes
2answers
264 views

How to delete (not disable/mask) a unit in Systemd?

Sometimes I make a new unit in mistake, and then I have to go to /etc/systemd to look for the unit and delete all of its associated files/scripts/links/etc. Is there a better way? Like a single ...
2
votes
2answers
136 views

How to turn off single user mode on a remote machine?

I have a linux machine that I was accessing remotely and I made the mistake of doing #init 1 which turned off networking on the machine. What is the easiest way to turn networking back on and/or get ...
1
vote
1answer
421 views

How to disable respawn for terminal?

In old 5.3 rhel, we used to define the number of terminals and their respawn settings in /etc/inittab file as below. 1:2345:respawn:/sbin/mingetty tty1 1:2345:respawn:/sbin/mingetty tty2 ...
1
vote
2answers
2k views

Starting Qt Application On Startup for Embedded Linux

I'm trying to launch get a Qt application to launch after immediately after booting up. When booted, the Linux image does nothing more than launch an X server and a terminal. It also has the cron ...
3
votes
1answer
176 views

Rolling your own init: How to shutdown/restart?

After reading this answer, I thought it would be funny to roll my own init on Python, so I wrote this in /init-python. #!/usr/bin/python3 import os import subprocess # Make / writable! ...
4
votes
1answer
202 views

init: is it a user thread or a kernel thread?

init is the first task executed after kernel is loaded, right? Then who is its owner. also I can see [swapper/0] [swapper/1] ..... [swapper/7] having pid 0 PID PPID CPU TASK ST %MEM ...
32
votes
4answers
31k views

What is the difference between reboot , init 6 and shutdown -r now?

I just want to know difference between in reboot init 6 shutdown -r now and which is the safest and the best?
5
votes
2answers
415 views

What happens if I set default system runlevel to 0 or 6?

What I understand from runlevels is that in each level some programs have permission to be executed and some don't. runlevel 3 boots system into CLI and runlevel 5 starts the default GUI. But I don't ...
5
votes
1answer
372 views

inittab '-' character in process field

I have a an inittab file with the following entry: console::askfirst:-/bin/ash According to this Man page a '+' character in the process field means init will not do utmp and wtmp accounting ...
4
votes
2answers
2k views

Why does debian and ubuntu default to runlevel 2?

I never thought about this before, but I was wondering why they chose runlevel 2. Every other distro and OS I've used default to runlevel 3 (with the exception of AIX which also defaults to runlevel ...
6
votes
3answers
7k views

File in Ubuntu equivalent to /etc/inittab file in RedHat

I searched a lot but can't get any solution. My question is what file in Ubuntu is equivalent to /etc/inittab file in RedHat. In RedHat /etc/inittab file contains the setting related to runlevel in ...
6
votes
2answers
1k views

What can make passing init=/path/to/program to the kernel not start program as init?

I'm trying to debug an init script on a Linux system; I'm trying to pass init=/bin/sh to the kernel to make it start sh without starting init so I can run through the init sequence manually. What ...
1
vote
1answer
2k views

“INIT: version 2.86 reloading” - cause and fix?

INIT: version 2.86 reloading appears on screen. Encountered this error and it seems there is no other way to fix this other than rebooting the system. unable to ssh in, unable to login via ...
13
votes
1answer
4k views

init process: ancestor of all processes?

I have always learned that the init process is the ancestor of all processes. Why does process 2 have a PPID of 0? $ ps -ef | head -n 3 UID PID PPID C STIME TTY TIME CMD root ...