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

learn more… | top users | synonyms

65
votes
3answers
33k 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?
22
votes
4answers
46k views

How to install an init.d script in ubuntu?

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 ...
21
votes
2answers
13k 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 ...
20
votes
2answers
2k views

What would happen if init was deleted?

Just a theoretical question... But what would happen if init (in /sbin/init) would be removed?
16
votes
6answers
21k 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 ...
15
votes
4answers
4k 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 ...
14
votes
1answer
26k 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 ...
11
votes
3answers
18k views

where is inittab file?

hi i'm on ubuntu 10.10, and i've just joined linux world from os/x-apple. i'm learning about runlevels and rc directory in /etc/ and everywhere (manuals, tutorials, etc) i'm reading about inittab. but ...
11
votes
2answers
536 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 ...
10
votes
3answers
43k 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 ...
9
votes
4answers
3k views

What is Upstart?

Which operating systems besides Ubuntu use it?
8
votes
3answers
3k 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?
6
votes
3answers
16k 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 ...
6
votes
2answers
1k 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?
6
votes
2answers
30k 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 ...
5
votes
2answers
5k 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, ...
5
votes
2answers
17k 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 says this message when I try to start it ...
5
votes
3answers
12k 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 ...
4
votes
1answer
8k 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 ...
4
votes
5answers
7k 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 ...
4
votes
2answers
2k 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 ?
4
votes
2answers
3k 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 ...
4
votes
2answers
13k 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 ...
4
votes
4answers
4k views

Upstart script for a transmission-daemon executed as a normal user

I have done a script to start transmission-daemon as a normal user: start on filesystem stop on runlevel [!2345] respawn respawn limit 10 5 pre-start script test -x /usr/bin/transmission-daemon ...
4
votes
1answer
5k 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, ...
3
votes
2answers
4k 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. ...
3
votes
1answer
384 views

Why does mysql process starts on boot?

As you can see, mysql exists only in the /etc/init.d directory and not in /etc/rcN.d, therefore it shouldn't start on boot. $ sudo find /etc -regex ".*\(rc.*d\|init\.d\).*" | sudo grep "mysql" | sort ...
3
votes
3answers
121 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 ...
3
votes
1answer
304 views

.override file isn't working

I have a file /etc/init/boinc-client.override with the single line manual that I use to prevent the BOINC client from starting up. (I don't want it hogging CPU time away from Folding@Home, for now ...
3
votes
1answer
3k views

How to set up Java-based services for startup?

What's the best way to set up a Java-based program to run an service and start on boot? upstart (pre-start script and post-stop script ?) plain old SysV init? (start-stop-daemon ?) In my case I am ...
3
votes
1answer
6k 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 ...
3
votes
4answers
11k views

13.04: Kernel panic - not syncing: No init found

I know this question has been asked several times on this forum, but none of the answers given worked for me. Tonight I did an install of Ubuntu 13.04 on a brand new Acer Aspire laptop. I formatted ...
3
votes
1answer
418 views

Scripts slowing boot

Inspired by the "How fast" video, I've recently been trying to speed up my boot up as much as possible. I've been reading many forums on different approaches but I've recently hit a wall with a ...
3
votes
2answers
879 views

starting sshd on first connection to port 22 with upstart's new socket bridge

Recent Upstart has these new fancy systemd-like features of starting jobs on incoming connection via socket-bridge. I'd like to start my sshd upon first connection to port 22. I now have: start on ...
3
votes
2answers
5k views

Booting Ubuntu into the Command Line? [duplicate]

Possible Duplicate: How to disable X at boot time? How do I boot Ubuntu by default into the CLI using a multiuser runlevel? I wish to still maintain my graphical desktop manager (GDM or ...
3
votes
1answer
975 views

On 10.04 Lucid, how can I add a script to startup to run as another user?

On 10.04 Lucid, how can I add a script to run at startup as another user? Will I add a script someplace like /etc/init.d/myscript ? Or is it better to put it in the cron file for root as @reboot and ...
3
votes
6answers
5k views

Live CD kernel panic

I'm an Ubuntu user since Hardy Heron and even in other distros, I've never been through such thing. I can't install Ubuntu 10.10 on my notebook, because I simply can't even start the Live CD... I ...
3
votes
1answer
746 views

command “init 1” freezes computer

I'm taking a Beginners Administration for Linux class, and one of the things we are learning is how to change "runlevel" in order to optimize efficiency and security of a server. However, when I run ...
2
votes
4answers
186 views

Is viewing system files like “/sbin/init” safe?

Do I risk breaking my installation of Ubuntu if I view /sbin/init without editing it, say, in gedit? (I'm taking an online Linux course and they mention this and I wanted to see what it looks like.)
2
votes
1answer
888 views

MythTV in dmesg though it is not installed

dmesg shows stranges massages. Last year I tried mythtv but it didn't work for me and thus I removed it again. Today I saw that dmesg shows this messages: [ 16.047679] init: mythtv-backend main ...
2
votes
2answers
10k views

How to write an init script that will execute an existing start script?

I'm trying to understand the init process. I have a script which launches 3 background processes (2 shell scripts and a java app). It works just fine from the command line. I'd like to execute that ...
2
votes
2answers
421 views

Am I running 32-bit or 64-bit?

I know this question has been asked a number of times, but my system seems to contradict itself… Following the answer to this question, I have run the following: $ uname -a Linux manaha ...
2
votes
3answers
2k views

High cpu use from init and yes [Ubuntu 12.04]

Today, I installed a fresh Ubuntu 12.04 LTS on my Sony VAIO VPCSB. I noticed a high cpu use of init and yes (as you can see below). top - 16:26:16 up 11 min, 2 users, load average: 2.71, 2.86, ...
2
votes
1answer
134 views

Switch raring to systemd [closed]

I know that Raring use upstart as init system. However I'm wondering if it's possible to switch to systemd, as we can do it on Debian. I've found this ppa: systemd : Martin Pitt But the systemd ...
2
votes
1answer
452 views

Where is Unity startup script in rc?.d

I've been reading about runlevels and startup scripts lately, and I've learnt that runlevels 2 to 5 are the same in Ubuntu, and that Ubuntu's default runlevel is 2. What I want to do I want to ...
2
votes
2answers
400 views

How do I prevent race conditions in Upstart 'starting on' scripts?

I am working on a package that needs two Upstart jobs: one that launches a daemon, and another that launches a supporting daemon if the configuration file requires it. The logic to determine if the ...
2
votes
1answer
942 views

Upstart scripting: Start service and immediately run another command

Here is my current Upstart script I've placed at /etc/init/redis.conf: description "redis server" start on runlevel [2345] stop on shutdown exec sudo /opt/redis/redis-server /opt/redis/redis.conf ...
2
votes
1answer
2k views

How do I change the runlevel?

How can i change the runlevel in ubuntu 10.04 or 10.10 As far as I can recall ubuntu changed the runlevel with something else? If I want to change the start to terminal only and not X what and r
2
votes
3answers
2k views

How to do a clean reinstall of initramfs

I was getting the error mentioned in this post on Ubuntu 10.04. I upgraded to Ubuntu 10.10 through software update and again I'm getting this error. mount: mounts none on /dev/pts failed: Device ...
2
votes
1answer
189 views

Failed to use upstart to control startup dependency

In a server I have memcached and apache2 installed, I want my apache2 ONLY can start if memcached is started, so in my apache upstart script, I added the line From start on runlevel [2345] To ...