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

learn more… | top users | synonyms

0
votes
3answers
30 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 ...
1
vote
2answers
153 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 ...
0
votes
1answer
15 views

Suppress console output when switching runlevels

Is there any way to silence the output that occurs on TTY1 when switching runlevels? I'm talking about the output like in the following image: I have a simple UI that may be running on TTY1 when ...
0
votes
1answer
29 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
42 views

Init system with dependency handling and service file format on *BSD

I'd like to know whether there are any Systemd equivalents for *BSD distributions, basically something that can handle dependencies between services (service A requires B to be started, so until B is ...
0
votes
1answer
953 views

lsb - log_daemon_msg echoes messages in shell console!

#!/bin/sh . /lib/lsb/init-functions log_daemon_msg "this is a daemon s message" On the shell console, it prints, this is a daemon s message A daemon process doesn't have stdout at all. So why ...
0
votes
1answer
648 views

Systemd hangs in Xen Dom0 immediately after switch_root in boot process

I've been trying to set up Xen to work with UEFI and my Arch Linux install (3.18.2) as a Dom0 but have been unable to boot. Of note is the fact that it will boot completely fine otherwise, just not ...
0
votes
1answer
159 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
1answer
241 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
365 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 ...
-1
votes
1answer
20 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 ...
-1
votes
1answer
299 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 ...
4
votes
0answers
39 views

Does anything USE /dev/initctl or /run/initctl

I have been investigating code for a UPS for a Raspberry Pi that is using sysv init rather than systemd (personal preference and familiarity). I was looking into how a privileged script - possibly ...
2
votes
0answers
112 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
0answers
524 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 ...
2
votes
0answers
534 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
40 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. ...
1
vote
0answers
247 views

Why can't the kernel run init?

I've downloaded the Raspbian image on this page. I'm trying to compile a kernel that can be used to boot the image within qemu. I downloaded the Linux kernel source from kernel.org and ran: make ...
1
vote
0answers
145 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
0answers
167 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 ...
1
vote
0answers
41 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
514 views

Solaris 11 - (unix: Could not start init) Program terminated)

During a restart of a server with Solaris 11, the system halted with the following alert: WARNING: exec(/usr/sbin/init) failed with errno 8. (unix: Could not start init) Program terminated. The ...
0
votes
0answers
10 views

init & System V IPC in kernel

Does it affect init if System V IPC is not compiled into a kernel? Does init require System V IPC?
0
votes
0answers
7 views

Is there a way to bypass a specific service from initializing while it's “hanging” during boot?

RHEL 5.x I had a network issue that was preventing ntpd from being able to reach a remote time server pool. This ended up prolonging system startup to "hang" at: Starting sshd: ...
0
votes
0answers
58 views

How to run script on startup?

I'm trying to run my script spoofy.sh on start up and I'm having some troubles hoping somebody could shed some light here. I am running Arch Linux, heres my script: #!/bin/bash ifconfig wlo1 down ...
0
votes
0answers
37 views

How to prevent closing lid events when system hibernates?

I'm using Linux Mint XFCE 17.2 (V-init), kernel 3.16. When I choose hibernate or shut down in xfce-logout dialog and close the lid immediately - notebook suspends. But it should ignore lid event for ...
0
votes
0answers
74 views

rc.local isn't being executed on custom Ubuntu LiveCD image

I have unpacked an Ubuntu desktop live ISO and squashfs, added some simple commands to /etc/rc.local (touch a file in /tmp, wget a web page from a local server), but it seems that rc.local isn't ...
0
votes
0answers
388 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
0answers
96 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 ...
0
votes
0answers
352 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). ...