Questions tagged [init]

init is the first actual process (PID 1) spawned during the boot sequence of a UNIX system. Some systems may rely on alternative solutions such as systemd or Upstart (Ubuntu).

50 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
1k views

kernel parameter init=/bin/bash not working? (RHEL7, RHCSA test)

I took the RHCSA test a couple of weeks ago, which is a lab/hands-on test. The first step is to gain root access of the VM. Usually (and this works okay on my PC's VirtualBox CentOS 7 VM) I do this by ...
3
votes
0answers
983 views

Why does Linux Mint starts in runlevel 5 even though DEFAULT_RUNLEVEL is set to 2?

When studying about Linux runlevels I came across something I was unable to explain to myself while trying to change the DEFAULT_RUNLEVEL. When I boot Mint, it starts in runlevel 5, even though it ...
3
votes
0answers
840 views

Kernel panic - not syncing: Attempted to kill init! during early boot

I am getting Kernel panic - not syncing: Attempted to kill init! during early boot on my Fedora Linux system. Root and home filesystems cannot have been mounted since both are encrypted and I have ...
2
votes
0answers
48 views

where in Ubuntu 14.04 to set env vars to be default for all processes and daemons

I want to set the LANG variable to a default for all daemons started by upstart (init) in Ubuntu-server 14.04. I've already set it in /etc/default/locale and /etc/environment. Those both affect ...
2
votes
0answers
490 views

Linux: Why do init and systemd use so much I/O?

This is probably unanswerable. But maybe someone else will have this problem and find this question, append to it, or proffer an answer. I discovered the pidstat command with its -d option, today. ...
2
votes
0answers
560 views

What is the systemd equvalent to sysvinit 'X-Start-Before'?

Quoted from https://wiki.debian.org/LSBInitScripts. X-Start-Before: boot_facility_1 [boot_facility_2...] X-Stop-After: boot_facility_1 [boot_facility_2...] provide reverse dependencies, ...
2
votes
1answer
950 views

How can I replace root / filesystem with another filesystem?

When the Linux kernel starts up, it uses initrd as the root / filesystem, then replaces that with a filesystem partition in fstab. Based on a test in an early init script, I want to replace that root ...
2
votes
1answer
1k 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 When ...
2
votes
0answers
1k views

mkinitcpio did not include modules.devname in cpio image

I'm running Arch Linux with a customized kernel. I modified the PKGBUILD from abs, and renamed the package to linux-custom. The PKGBUILD is fine, after installation I could see the modules.devname in ...
1
vote
0answers
18 views

How can I configure my TTYs and VTs i.e. my Alt-Fn keys F1 - F12 in a safe and flexible way?

Right now I have a archlinux systemd installation that gives me a console login on tty1 to tty6. I see that with this @getty service systemd has an elegant way to fire up an array of ttys. The result ...
1
vote
0answers
19 views

What is the equivalent of systemd-analyze in CentOS 6?

systemd-analyze is the command to investigate time taken by each service during boot in CentOS 7. Is there a similar utility in CentOS 6 for doing this? update: extending the question after Lucas' ...
1
vote
0answers
99 views

Linux Mint won't boot after issues saving .tex file

I've been having some problems booting into Linux Mint 18.2. It started when I woke the computer from sleep and tried to continue editing a .tex file I was working on. I got some errors which ...
1
vote
1answer
58 views

Using second init/systemd startup on different partition

We have the following setup: A read-only system partition from which the kernel is booted from. (Debian Jessie) A read-write partition which has additional software to be started as daemons. A simple ...
1
vote
0answers
463 views

LXC does not stop, Failed to connect to bus

I just created a new LXC with the following command: lxc-create -n ${NAME} -t download I choosed debian, stretch and amd64 as characteristics. I'm using the LXC in unprivileged mode with UID/GID ...
1
vote
0answers
50 views

Edit init file in order to remap ctrl to enter via xcape

I'm trying to remap cnrl to the caps lock and enter keys in way similar to the program karabiner for macOS. I found the following site http://emacsredux.com/blog/2016/01/30/remap-return-to-control-in-...
1
vote
0answers
176 views

How systemd Type option affects starting other units?

The man page systemd.service(5) explains the Type options for services: Type= Configures the process start-up type for this service unit. One of simple, forking, oneshot, dbus, notify or ...
1
vote
0answers
43 views

systemd service: Is it possible to get the name of the user who triggered a power event?

I'm trying to modify the power-related service files that come with systemd (for example, systemd-reboot.service) so that they run another command before bringing down the system. I want this command ...
1
vote
0answers
39 views

How to let program to be killed after root filesystem cleanly unmounted?

I'm using qemu-nbd and ntfs-3g (please don't ask why) on Debian stretch to mount my root filesystem. But on shutdown, these programs get killed first, which causes my root filesystem not unmounted ...
1
vote
2answers
347 views

Remove multiple regular expressions from variable with sed

I'm sure this is pretty simple but I can't seem to find a good example. I'm trying to parse /proc/1/exe to find the init system of a box. Exe is a symlink to the init system, but it has quotes in it ...
1
vote
0answers
23 views

Init issue in BF548 EZkit

What is the reason behind kernel can not get init file though this file present in target architecture? i am working on BF548 EZKIT, And completed NOR boot Mode. But In NAND boot mode I had flash u-...
1
vote
1answer
56 views

Put console on ttyS0 if guest OS is booted headlessly

We're using Debian 4 (No systemd) for our product. I run it as a guest OS managed by VirtualBox for testing purposes. Here's how I use it: For manual debugging, I have the guest OS's console on its ...
1
vote
0answers
503 views

Running Python application on boot through init.d script

I am trying to start an Python application on a Debian based OS that is running on a router. This application comes prebundled with site-packages and a python binary. Like a virtual environment. The ...
1
vote
0answers
332 views

MySQL update failed (debian)

I have problem updating MySQL server (pkg mysql-server5.5) MySQL server "can't stop" [FAIL] Stopping MySQL database server: mysqld failed! invoke-rc.d: initscript mysql, action "stop" failed. dpkg: ...
1
vote
2answers
440 views

/init can't find /bin/mount, but find / can?

I have trouble, while booting up a linux machine of mine. During the boot phase, while running the /init script it complains about not being able to find mount. My PATH variable is set to /sbin and /...
1
vote
0answers
50 views

(nologin) root and id X re-spawning

Today I faced a strange issue on one of the test server. Server was set to Runlevel 5. But it didnt work and system changed to runlevel 3. It was showing "init: Id "x" respawning too fast: disabled ...
1
vote
0answers
1k 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). ...
0
votes
0answers
27 views

How to reload users daemons as superuser?

I'm writing an installation script that should do the following just after package installation: systemctl --user daemon-reload systemctl --user start ${@}" The problem is that the installation is ...
0
votes
0answers
15 views

init:wait for root not found

For Ubuntu 16.04, the init script does not exceute the function mountroot, nor does it drop down to the shell. What could be the reason for that? Also, I've updated the menuentry for GRUB , as follows:...
0
votes
0answers
12 views

Is there a command named 'run_scripts' in open SUSE for the init daemon?

For a particular init daemon, I've come across a command 'run_scripts' and a directory specified after the 'run_scripts' for the initialization of those daemons. What is it, and why is it used in such ...
0
votes
1answer
64 views

is there a proper way to shut down from single user mode

I've found a lot of inconsistent documentation on single user mode. I don't need to use it often, but I get curious, and I remember not being to use shut down commands in single user mode and ...
0
votes
0answers
132 views

Unable to change from graphical target to other systemd targets in Ubuntu

I am currently a newer user of terminal in Ubuntu. I was trying to demonstrate some features of targets in systemd. Each time that I do systemctl enable or systemctl isolate , I enter my credentials, ...
0
votes
0answers
62 views

linux kernel auto load driver module

I want to know how linux kernel know which module must load on startup ? i know some modules must defined in /etc/modules . but what happened if i change physical hardware ? for example ...
0
votes
1answer
54 views

Background initialization with runit

I recently switched my init system on my ARM box running Linux 2.6 from sysvinit to runit with great success. However, I'm trying to fine-tune the initialization routine. I'd like to have something ...
0
votes
0answers
172 views

How do I stop trackpad driver via xinput disable

If I enter the xinput list command into a terminal I get the following output. Virtual core pointer id=2 Virtual core XTEST pointer id=4 Synaptics TM3096-006 id=11 SynPS/2 ...
0
votes
1answer
95 views

what dependency-based linux init systems suitable for embedded systems?

Currently, I run Linux on an arm board using Sysvinit, but the network drivers of my board are not the best which causes the network service to stall the boot for a while, I also have problems with ...
0
votes
1answer
502 views

Init running in Debian 9.1

I have the /usr/lib/systemd and /etc/systemd directories, and systemd is running. But I also have the /etc/init/ directory, with several .conf configuration files, I thought this was a sign of ...
0
votes
1answer
274 views

/sbin/init hangs after upgrading linux kernel

I am upgrading the kernel on a platform using an ARM SOC (AT91SAM9G25) from 3.2 to 4.4. This is a sysv system. The previous 3.2 works fine, but when booting the 4.4 kernel, it hangs after the exec ...
0
votes
0answers
92 views

How to open terminal in run level 1?

I entered my run level 1 using init 1 for running fsck -t ext4 /dev/sda1 for fixing my file system problem. I didn't see any terminal where I can run command. I saw only a blank black skin. I also ...
0
votes
0answers
57 views

run command before/while systemd-logind

I'd like to run a command, i.e. archhey3 just before or rather while logind is prompting for username and password at the virtual console. Can someone point me in the right direction? checked the arch-...
0
votes
1answer
570 views

init.d script is not creating a pid file

I am on ubuntu 16.04 and I want to use monit to monitor gunicorn but I am faced with two issues... There is no pid file made even though the init.d script seems to specify one. How can I monitor ...
0
votes
3answers
2k views

Startup script needs root permissions

I have a script that I need to run at startup. I have it in init.d. I need to execute one of the commands within the script with root permissions. How do I go about doing this? Edit 1: For reference,...
0
votes
1answer
358 views

Where do service permissions come from

I'm trying to broaden my knowledge of the events surrounding system startup. I see that there are many process which are started without root level permissions. e.g. rsyslogd is listed as running ...
0
votes
1answer
2k views

inittab respawn and rc.local

At the moment I have a daemon starting at boot using rc.local by the following line. su -l user -c '/dir/daemon' but I would like to start this process as a service with respawn. I found out that it ...
0
votes
0answers
795 views

“There is a loop between service rc.local and mountnfs-bootclean if started”

So this is the error I receive when I try sudo apt-get upgrade insserv: There is a loop between service rc.local and mountnfs-bootclean if started insserv: loop involving service mountnfs-bootclean ...
0
votes
1answer
245 views

Difference between telinit and running scripts manually under rc*.d

I was trying to debug my Linux boot process. If I set the default runlevel to 2 or 3, my system hangs without giving me a prompt. I was able to get to runlevel 1 via a kernel parameter, and ran all ...
0
votes
0answers
148 views

CTRL-ALT-DEL for init 0?

On On my Debian 7 system the Ctrl-Alt-Del is this line below and is by default init 6 ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now But I want to turn for init 0 and not init 6 when I press Ctrl-...
0
votes
1answer
308 views

Init script partially launches java app

I have a java application that I manage to execute by hand. The application normally opens several ports for local communications (7180 => 7183). Port 7182 serves as a web console and allows me to ...
0
votes
1answer
627 views

What are my problems with my VMWare runlevel setup?

I recently upgraded to Debian Wheezy (7) and had to upgrade VMWare Player along with that since the version I had didn't like the 3.2 kernel. However, I notice that the kernel modules aren't starting ...
0
votes
1answer
906 views

Error in rosdep init

I have Elementary OS and a try install ROS (Robot Operating System) and when i try initialization sudo rosdep init i get this error Traceback (most recent call last): File "/usr/bin/rosdep", line 3,...
-1
votes
1answer
99 views

Run init.d script during boot

I need to do something apparently quite simple: run a script on a Debian 8.2 machine during boot (or during shutdown, both of them are fine). The script just moves and renames some files, so the ...