Questions tagged [init]

Init is the initial process that loads on a linux system. If init fails to load, it will result in a kernel failure.

Filter by
Sorted by
Tagged with
644 votes
24 answers
750k views

How do I free up more space in /boot?

My /boot partition is nearly full and I get a warning every time I reboot my system. I already deleted old kernel packages (linux-headers...), actually I did that to install a newer kernel version ...
user6722's user avatar
  • 6,715
255 votes
3 answers
203k views

What is the difference between /etc/init/ and /etc/init.d/?

What is the difference between /etc/init/ and /etc/init.d/? More generally, what meaning does the .d suffix convey to a directory?
Olivier Lalonde's user avatar
85 votes
4 answers
361k views

How to install an init.d script?

I am trying to install an init.d script, to run celery for scheduling tasks. Here is the steps I followed: copied the file celeryd and pasted it in folder /etc/init.d/ created a configuration file ...
suhailvs's user avatar
  • 1,373
51 votes
5 answers
232k views

vivid - failed to connect to upstart: connection refused

Just updated via do-release-upgrade and now certain upstart jobs such as fail2ban and plexmediaserver will not start (have tried reinstalling) $ sudo service fail2ban start Job for fail2ban.service ...
matty87a's user avatar
  • 511
48 votes
2 answers
50k views

How can I replace upstart with systemd?

Since Mark Shuttleworth decided to switch to sytemd in the future, I was wondering if I can install it on my Ubuntu now?
blade19899's user avatar
  • 26.7k
43 votes
3 answers
60k views

Is Ubuntu 14.04 using systemd?

There was a lot of discussion about the init system for 14.04 before it was released, but I cannot find any site that explains the outcome finally. So is Ubuntu 14.04 using systemd now?
rubo77's user avatar
  • 32.4k
37 votes
5 answers
106k views

Where is the inittab file?

I'm on Ubuntu 10.10, and I've just joined the Linux world coming from OS X. I'm learning about runlevels and the rc directory in /etc/, and everywhere (manuals, tutorials, etc) I'm reading about ...
nkint's user avatar
  • 2,025
35 votes
4 answers
74k views

How to get rid of cloud-init?

I'm using Ubuntu 14.04 image as my base box for vagrant. Unfortunately this base box contains cloud-init which causes many problems during starting-up the machine: https://github.com/mitchellh/vagrant/...
mnowotka's user avatar
  • 535
34 votes
6 answers
66k views

Upstart script doesn't start

Ubuntu 10.04 I have created this upstart script (/etc/init/pure-ftpd.conf): # pure-ftpd - FTP server description "Pure-FTPd server" start on filesystem stop on runlevel S respawn respawn limit ...
Juan Simón's user avatar
  • 1,703
33 votes
2 answers
35k views

How can I make sure one Upstart job starts before other Upstart jobs?

This is a general Upstart question, but let me use a specific case: Centrify is a NIS to ActiveDirectory gateway. It needs to load before any service that will depend the authentication service that ...
Mark Russell's user avatar
  • 7,376
31 votes
8 answers
339k views

Cannot boot because: Kernel panic - not syncing: Attempted to kill init!

This is what I've got. I cannot boot and I see the two of three little lights on the keyboard blinking all the time and the cooling is working on full power, almost. I saw in other askubuntu topic ...
Ivan Dokov's user avatar
29 votes
5 answers
42k views

What is Upstart?

Which operating systems besides Ubuntu use it?
akshatj's user avatar
  • 13.2k
26 votes
4 answers
165k views

How can I see or change default run level?

In the Linux / Unix administration handbook it mentions that you can edit the /etc/inittab file to change the run level. I don't have that file on 10.04. I Googled this and found a tip saying that ...
cwd's user avatar
  • 1,603
25 votes
2 answers
101k views

What init 1 command exactly does?

Well to be honest I love finding Loopholes in everything, I was watching a TV Serial Mr Robot and at some point a character mentioned init 1 command, that her computer started crashing again and again ...
Ahsan's user avatar
  • 367
23 votes
3 answers
43k views

How can I make fsck run non-interactively at boot time?

I have a headless Ubuntu 12.04 server in a datacenter 1500 miles away. Twice now on reboot the system decided it had to fsck. Unfortunately Ubuntu ran fsck in interactive mode, so I had to ask someone ...
Nelson's user avatar
  • 706
22 votes
2 answers
4k views

What would happen if init was deleted?

Just a theoretical question... But what would happen if init (in /sbin/init) would be removed?
Kaz Wolfe's user avatar
  • 34.1k
22 votes
1 answer
78k views

Is reboot the same as init 6?

Is reboot the same as init 6 for ubuntu? I'm running Ubuntu 12.04 on Amazon EC2. When ssh'ed into the box I can type runlevel and I get: N 2 Looking at man reboot I see that: When called with --...
cwd's user avatar
  • 1,603
18 votes
6 answers
13k views

How do I stop all processes in a chroot?

I have a number of LVM partitions, each containing an Ubuntu installation. Occasionally, I want to do an apt-get dist-upgrade, to update an installation to the most recent packages. I do this with ...
Jeremy Kerr's user avatar
  • 27.2k
14 votes
1 answer
25k views

When you run `update-rc.d myscript default` - what is called on startup/shutdown?

What gets called on startup/shutdown when you run update-rc.d myscript default? Docs seem fuzzy, I want concrete. I am guessing that this happens: At startup (specifically at entry to runlevel 2, ...
David Parks's user avatar
  • 2,516
13 votes
2 answers
6k views

What does init on Ubuntu do?

I already know that init is the magical program that is needed for booting your computer and managing runlevels, but what is it's real purpose? Why do we even need init in the first place? Why can't ...
Kaz Wolfe's user avatar
  • 34.1k
10 votes
2 answers
51k views

How to start jenkins?

I installed jenkins via sudo apt-get install jenkins. However, it doesn't start up. Tried to start it manually using sudo /etc/init.d/jenkins start. But it shows this message when I try to start it ...
Jeffery Bingham's user avatar
10 votes
2 answers
2k views

Upstart not reopening log files on logrotation

We use upstart to manage our services on our Ubuntu servers. They produce logs which are logged out to /var/log/upstart/SERVICE_NAME.log Then daily, the log files are rotated using the logrotation ...
Andrew Newdigate's user avatar
10 votes
1 answer
19k views

list all services

There are two ways you could do this service --status-all. The other way is to do initctl list. I would like to know the difference. some services like mysql do not show up in initctl list, and some ...
Akilesh's user avatar
  • 233
9 votes
3 answers
47k views

Initramfs error during boot

Boot from (hd0,0) ext3 238ac8ca-9576-443d-8e23-8dd836cd2683 Starting up ... mount: mounting /dev/disk/by-uuid/238ac8ca-9576-443d-8e23-8dd836cd2683 on /root failed: Invalid argument mount: mounting /...
user avatar
9 votes
3 answers
61k views

A TPM error (7) occurred attempting to read a pcr value

I had tried a command (I do not remember it) with the terminal of Ubuntu, and the computer shut down. Now when I boot it, it says :- [ 4.562057] ACPI PCC probe failed. [ 4.615205 tpm_tis ...
G. Hansel's user avatar
9 votes
0 answers
28k views

What is the correct way to run a command after boot on ubuntu 18.04? [duplicate]

I need to run a simple batch of commands after the computer boots, something like sudo thing sudo thing1 -p But for the life of me I can't figure out how. I googled and googled and I kept finding the ...
Askerman's user avatar
  • 826
8 votes
3 answers
37k views

Run Python Script on OS boot

This might be a question that has been repeated but i cannot find a correct way to do it . What is my case ? ->I want to run a Python script. What does the python script do in brief? ->The python ...
Sijan Shrestha's user avatar
8 votes
2 answers
45k views

Why I cannot find in /etc/inittab? [duplicate]

Possible Duplicate: where is inittab file? I have learned from the wikipedia that init is usually called by the kernel with an argument to specify the runlevel, in order to do different things ...
Yishu Fang's user avatar
  • 2,485
8 votes
2 answers
3k views

What is responsible for mounting disks listed in fstab?

What script/init process/whatever is responsible for reading fstab and calling mount, during the boot process?
David Pfeffer's user avatar
7 votes
2 answers
11k views

What is this brltty init script?

I'm on my way to cleanup my system , started from init scripts , and found: /etc/rcS.d/S25brltty The description header wasn't helpful enough, and what's that used for, and if it's safe to purge ?
daisy's user avatar
  • 6,592
7 votes
5 answers
16k views

Init process at 100% CPU usage

I have a Ubuntu x64 machine on a OpenVZ VPS account on a QuadCore processor with 1GB/2GB(burst). A few days ago I've managed to successfully update it to 11.10 Oneiric Ocelot. There's only one problem:...
Cristian Sitov's user avatar
7 votes
2 answers
32k views

What starts accounts-daemon?

Question is simple: what starts the accounts service daemon on Ubuntu 14.04? root 11495 1 0 13:55 ? 00:00:00 /usr/lib/accountsservice/accounts-daemon pstree tells me that it's ...
Sergiy Kolodyazhnyy's user avatar
7 votes
1 answer
4k views

How does the Ubuntu boot process work?

I have read many articles about the Linux boot process. As I understand the Linux boot process is something like this : BIOS (UEFI) → MBR → grub → Kernel → init What I really don't understand what ...
Mero's user avatar
  • 254
7 votes
1 answer
30k views

debugging `Kernel panic - not syncing: Attempted to kill init!`

After accepting to a kernel update my system stopped functioning. Commands on the terminal (like ls, cd, etc.) were not working and returned an error message command not found, as well as trying to ...
Matteo's user avatar
  • 2,307
6 votes
3 answers
56k views

Target filesystem doesn't have requested /sbin/init

I installed 10.10 a few days ago. The only changes to the default install are the addition of Chrome and Pinta. It was fine for a few days, then today login etc seemed slow. Likewise it couldn't even ...
Marc Gravell's user avatar
6 votes
3 answers
10k views

Ubuntu way to run sysctl -p on each boot?

I made some changes to sysctl.conf but now need to run sysctl -p on each boot. I can always create an init script to have it run automatically on boot, but I was wondering if there was an Ubuntu / ...
cmdematos's user avatar
  • 249
6 votes
1 answer
20k views

gedit not opening any file when launched from terminal, not only system files

My gedit application is working as normal when I launch it from launch menu and I can do all the kind of things. However when I go to terminal and issue the following command: gedit text1 Then I ...
rancho's user avatar
  • 4,036
5 votes
2 answers
2k views

Why do initd scripts in /etc/init.d remain after deinstallation of the corresponding package?

Packages, like irqbalance provide an initd script /etc/init.d/irqbalance which remains after the deinstallation of the packages with apt-get remove and needs to be evaluated by systemd or another init ...
Kalle Richter's user avatar
5 votes
2 answers
11k views

How can I run an application in gnome-terminal automatically when booting?

I need to run an application automatically when Ubuntu starts. I've got this app running without opening the terminal. However, this application displays some information in a terminal window and, ...
koco's user avatar
  • 51
5 votes
2 answers
22k views

cannot change runlevel from 5 to 3

i'm trying to change from runlevel 5 to runlevel 3 by running sudo init 3 command. for some reason it doesn't do anything anymore. the weird thing is that if i run the command runlevel it shows me ...
idgar's user avatar
  • 2,890
5 votes
2 answers
4k views

How do I setup gunicorn?

Upstart doesn't like to start gunicorn because it tries to call setpgrp (see github issue), what would be the best way to start [gunicorn] on a 10.04.1 server install? - Ideally with automatic ...
adonm's user avatar
  • 61
5 votes
2 answers
61k views

Failed to activate service 'org.freedesktop.systemd1': timed out

On ubuntu 16.04.6 on trying to mask a systemd service. I am seeing errors like below. systemctl mask hadoop-hdfs-zkfc.service Failed to activate service 'org.freedesktop.systemd1': timed out I am ...
tuk's user avatar
  • 231
5 votes
3 answers
4k views

How do I create a single-execution Upstart job guaranteed to complete before two other jobs begin?

How does one write an Upstart task that is guaranteed to run only once after each startup but is also guaranteed to run to completion before either one of at least two other jobs start running. I do ...
froage's user avatar
  • 136
5 votes
1 answer
17k views

Why doesn't sudo need password when used in rc.local?

I have added sh /home/victor/startupAP.sh into /etc/rc.local and the startupAP.sh contains statement which need sudo: $ cat startupAP.sh #!/bin/bash sudo hostapd -B /etc/hostapd/hostapd.conf 2>...
Victor S's user avatar
  • 825
5 votes
2 answers
655 views

Inconsistent output for init process name using 'ps'

I am on Ubuntu 16.04, and am following allong "Starting and Stopping" services chapter of the Linux Bible (9th edition). I am trying to find what type of init daemon I have (init or systemd) which ...
codecitrus's user avatar
5 votes
1 answer
28k views

/sbin/init : no such file or directory | Not able to boot ubuntu desktop

I have been using Ubuntu Desktop for a while now, but today for some reason I am not able to start it. Here is what I see. Here is what I have already tried : Tried booting in recovery mode ...
Faisal Memon's user avatar
5 votes
1 answer
9k views

/sbin/init splash high CPU usage

I'm running Ubuntu 20.04 and since a week the fan of my laptop spins constantly. There are also major performance dropouts where the system seems to halt for a few seconds. Now I had the time to take ...
FWL's user avatar
  • 71
5 votes
1 answer
8k views

Ubuntu server (VM) hangs after "Begin: Running /scripts/init-bottom ... done"

My bootup hangs, as seen in the image below. (there has been an update. check the edit below) When I press escape, it tabs to this screen : The whole story : This VM ubuntu server is used for a ...
Zaenille's user avatar
  • 151
4 votes
2 answers
7k views

Running commands on boot in 11.10

So I am getting properly confused on how to create a startup script on my Ubuntu 11.10 server. I have read about init-scripts, upstart-jobs and more, but I get even more confused the more I read. I'...
Industrial's user avatar
  • 1,698
4 votes
1 answer
11k views

initctl won't start jobs

I am operating an Ubuntu 11.10 server and one of the PHP scripts calls a bash script for inserting jobs and starting them. The script copies the job into /etc/init Everything is fine except that the ...
michael s's user avatar

1
2 3 4 5 6