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).

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Is there a way to autostart a DISPLAY dependent script with Xorg that's Display Manager Agnostic?

The goal here is to run this command when the display manager starts: xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --auto Or rather a script containing it upon startup of Xorg. The ...
1
vote
0answers
61 views

linux suspicious process spawn by init

i found a suspicious process,it spawn by process 1 (init),as per the guide i doble check the /etc/rc.d/rc3.d ,but i can't found a entry named Sxxkauditd,no suspiciou entyr found in the inittab file ,...
1
vote
2answers
58 views

Linux Mint Live USB wont boot. /Init line 7. Can't open sdb. No medium found

I have a live-boot USB with Linux Mint 19.1 Cinnamon, I placed the boot image with Rufus and it has worked without problems on other machines. Now I have built a PC with various parts I've found on ...
-1
votes
3answers
256 views

Understand the /etc/inittab

I am using the following /etc/inittab file (systemv): # /etc/inittab: init(8) configuration. # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $ # The default runlevel. id:5:initdefault: # Boot-...
0
votes
1answer
12 views

Execute process with “low” priviliges inside shell with inittab

My goal is to modify the /etc/inittab file in order to execute a spesific program with minimal or customable permissions in an interactive shell with job controls enabled and once it will be ...
0
votes
0answers
64 views

Initramfs not able to mount /system

I Built 3.18 kernel for my android device. its stuck at init where the init is supposed to find the /system from Android DT and mount it , unfortunately it fails to find the location the error from ...
0
votes
1answer
24 views

A clean way to set a daily running time for a program

Kind of a noob question but I'm looking to have my networking daemon (wicd), run every day on my machine, only from 5am-6am and 6pm-7pm, regardless of when my machine was turned on, in other words, if ...
1
vote
1answer
210 views

How does initramfs mount root filesystem?

The iniramfs is like a small os which mount root file system and hand over control to systemd. So, how does initramfs work internally? Is there any scripts executed to mount the root in linux?
0
votes
0answers
27 views

What mean the number after S or K in /etc/rc{0-6}.d [duplicate]

I've already know that with an S will be started at the runlevel in question while those whose name begins with K will be killed. But there is some meaning in the number after S or K? one example: /...
-1
votes
1answer
35 views

Is there a systemd equivalent for user sessions?

There are many times when I'd like to have a certain daemons run when a user logs in and killed when a user logs out. I'd like these daemons to be restarted if the daemon exits unexpectedly and I'd ...
1
vote
0answers
129 views

OpenWRT BusyBox init does not create /etc/init.d/rcS

I'm building an OpenWRT image (Chaos Calmer) that needs BusyBox to be configured to use init. So, in the busybox configuration, I enter the Init Utilities menu, then enable init, as well as support ...
1
vote
0answers
42 views

Early User Space Init Not found

I have been compiling a kernel for my Android device and there is this problem that I have encountered. I have ported the kernel from v3.10.108 to 3.18. I have got the kernel to last part and solved ...
1
vote
1answer
39 views

Fedora 30 can't boot: faild to start up manager

I newly installed Fedora 30 on a machine then I installed Oracle Database 12c and restored a really big dump (took two days). Then, I installed samba server and shared a folder with that. After that, ...
1
vote
1answer
41 views

how to properly halt linux system when exiting init

In Qemu, I'm starting a linux VM where init process (PID 1) is bash. It is working : I can use bash after boot. But when I quit bash with a exit or CTRL+D I got a kernel panic. Kernel panic - not ...
1
vote
0answers
42 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 ...
0
votes
1answer
22 views

Why do all the links in /etc/rc6.d start with K if runlevel 6 corresponds to reboot?

I was trying to find out how to run a script at startup and during shutdown during which I got to know that level 6 corresponds to reboot in ubuntu. When I opened the /etc/rc6.d every link's name ...
1
vote
0answers
65 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' ...
0
votes
1answer
366 views

ps axf shows “/sbin/init splash” for PID1

I want to reformulate a very interesting Q by Thelostcause ("Splash in PID =1"): How does and how can "/sbin/init splash" show up in the ps command? I also ask: aren't we (we who are running a "...
2
votes
1answer
337 views

Does Linux sends `SIGCHLD` to `init` when it inherits orphaned zombie processes?

Does Linux sends SIGCHLD to init (PID 1 process) when it inherits orphaned zombie processes (processes that have not been reaped by its original parent)?
0
votes
0answers
32 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 ...
1
vote
2answers
771 views

Splash in PID =1

I have just started learning about process in Linux. I have come around this command called - ps -ef (which will shows all the process running ) I get output like this UID PID PPID LWP ...
0
votes
0answers
23 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
262 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 ...
2
votes
1answer
598 views

/etc/inittab respawn already running process, Debian9

I added an antry in /etc/inittab to respawn a binary. The entry is like: id:2:respawn:/path-to-my-bin I then execute init q and the process is started by inittab. If I kill the process, it's ...
0
votes
0answers
327 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
101 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 ...
1
vote
1answer
51 views

Process ownership automatically changes to init process on GCP Ubuntu 18.04LTS

We recently moved our development infrastructure from our own old machines running Ubuntu 12.04 to Google Cloud instances running Ubuntu 18.04. Developers usually start some screens and run django ...
0
votes
2answers
923 views

Why should parent process wait (to terminate) until all of its child process terminates?

I know there is no enforcement for the parent process to wait until all its child process terminates. However it's a convention followed. Furthermore, I know that if parent process terminates before ...
-3
votes
2answers
84 views

Is there a daemon which is not a server? [closed]

It seems that a server is not necessarily running as a daemon, e.g. X server. If I am not correct, please let me know. Is a daemon necessarily a server? Is there a daemon which is not a server? I ...
0
votes
1answer
453 views

Why is there a `systemd` process owned by each user that is logged in?

In my ps output: root 1 0.0 0.0 225552 5316 ? Ss /lib/systemd/systemd --system --deserialize 19 message+ 572 0.0 0.0 51564 3076 ? Ss /usr/bin/dbus-daemon --system --address=...
0
votes
3answers
58 views

Is telinit run as a daemon?

In sysvinit, telinit is a symlink to init. init is run as a daemon. Is telinit run as a daemon? I don't have sysvinit installed on my Lubuntu. For comparison, systemctl plays similar role to ...
-2
votes
1answer
90 views

In sysvinit, do `telinit` and `init` run in the same process?

In https://manpages.debian.org/stretch/sysvinit-core/init.8.en.html /sbin/telinit is linked to /sbin/init. It takes a one-character argument and signals init to perform the appropriate action. ...
-1
votes
1answer
51 views

On OSes with SysvInit, are `reboot` and `halt` symlinks to some executables?

On OSes with Systemd, reboot and halt are symlinks to systemctl. On OSes with SysvInit, what are reboot and halt symlinks to? Is it telinit? Or are they themselves executable files, not symlinks? ...
5
votes
3answers
2k views

What is the difference between “init” and “service manager”?

From When the operating system shuts down, how does a service manager know that it should sends SIGTERM and SIGKILL to its services? systemd IS BOTH the init and service manager What is the ...
-3
votes
1answer
405 views

How does Linux operating system shut down? [closed]

Gilles wrote an excellent reply about how Linux kernel shuts down at https://unix.stackexchange.com/a/122667/674 I was wondering how Linux OS shuts down (in cases of both systemvinit and systemd)? I ...
1
vote
1answer
947 views

Status of sysstat.service showing active(exited)

When I see status of sysstat is see the following, ● sysstat.service - Resets System Activity Logs Loaded: loaded (/usr/lib/systemd/system/sysstat.service; enabled; vendor preset: enabled) Active: ...
0
votes
1answer
58 views

kernel sysfs doesn't recognize storage kobjects [closed]

I am using ubuntu kernel 4.xx with corresponding ubuntu initrd.img, and it works. But, I want to use a custom initramfs inspired by lfs (linux from scratch) initramfs. The kernel extracts, and runs ...
7
votes
2answers
9k views

How can I make an executable run as a service?

On Ubuntu 18.04, I can start or stop some service by sudo service cron start/stop I can list some services by service --status-all The output matches the files under /etc/init.d/. I heard there ...
1
vote
1answer
858 views

Failed to execute /init (error -13), can't run '/etc/init.d/rcS': No such file or directory

Last night I broke my Arch. Now, when trying to boot, it says: [0.595364] Failed to execute /init (error -13) : can't log to /dev/tty5 starting pid 131, tty '': '/etc/init.d/rcS' : can't log to /dev/...
3
votes
2answers
828 views

Remove busybox from buildroot

As part of Linux hardening we want to remove busybox from filesystem created with buildroot. But I am not sure if system can boot without it. I am quite sure that there are init files that depends ...
1
vote
2answers
38 views

some process are started through init even i am using systemd

When I do ll /proc/1/exe I get lrwxrwxrwx. 1 root root 0 Oct 16 11:28 /proc/1/exe -> /usr/lib/systemd/systemd Which means i am running systemd daemon not init. But when I list ll /etc/init....
2
votes
1answer
208 views

What are runlevels and how they work

I have not a clear understanding of runlevels and how they work. I know runlevels are a digit indicating which processes should be started by init. Pratically speaking: at startup init sees this ...
1
vote
0answers
112 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 ...
0
votes
1answer
94 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 ...
1
vote
1answer
43 views

Setting up VM login instead of Local login [closed]

I had a question earlier, it is tied into this, that one was looking for the proper procedure, this one is looking how to implement. If you need a backstory refer to My first question I have a local ...
0
votes
1answer
193 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 ...
3
votes
1answer
353 views

Targets and Unit files on Boot System

I have been going through all the docs and examples regarding the targets (referred to as runlevel) for the past few days but I am still confused with the topic. Can anyone explained me the ...
0
votes
1answer
37 views

Portable way to run a simple script at startup

I'm trying to run a script at startup as root. (Just sets up a root-owned directory in /tmp). Currently, I'm using this script to set up the boot hook and it appears to get the job done: #!/bin/sh -...
6
votes
2answers
502 views

Where is fsck run?

I was reading through all the things that are run during bootup and have seen that after mounting the rootfs, /sbin/fsck.ext4 is run and after that systemd is run. I was wondering where or how fsck is ...