Init is the initial process that loads on a linux system. If init fails to load, it will result in a kernel failure.
131
votes
6answers
117k views
What's the recommended way to enable / disable services?
I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them.
The first method I found is update-rc.d to add new services to startup, ...
25
votes
3answers
8k 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?
6
votes
5answers
5k 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 ...
1
vote
0answers
28 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
1answer
309 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 ...
0
votes
0answers
21 views
Ubuntu server 12.10 init script requiring encryptfs to mount first
Below is my /etc/init.d/jboss script. It requires a symlink under an encrypted home directory to exist in order to start. (JBOSS_HOME points there)
In /var/log/boot.log it says standalone.sh not ...
1
vote
1answer
30 views
Start and stop parameters in init script
I have .conf a file in /etc/init/ with this code at the bottom:
start on (started network-interface
or started network-manager
or started networking)
stop on (stopping ...
0
votes
1answer
23 views
Upstart with a script that start and finish their own processes
I'm trying to setup in Upstart a script that launch several internal procs and kill them if is required
$ listener.py -startall
$ listener.py -killall
I can run it with this settings:
# Listener ...
1
vote
0answers
43 views
Why can't we remove bluetooth service the reguler way?
The usual way to remove services from startup scripts is to remove it from starting up in the first place (man update-rc.d). Meaning removing the symbolic link to /lib/init. In this case executing ...
2
votes
1answer
39 views
Need to know what program is writing to the console on start, logout and shutdown
I would like to know what program is responsible for writing messages to the console during the start, logout and shutdown process. What I'm referring to is that black console that comes out and spews ...
2
votes
4answers
2k 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 ...
1
vote
0answers
241 views
Kernel Panic error: Attempted to kill 'init'
After making a update on my Toshiba Satellite L300D laptop I started getting this error message:
Kernel panic - not syncing: Attempted to kill init! exitcode =0x00000007
I am currently running ...
1
vote
1answer
276 views
Console prompt during boot (for truecrypt)
In short: Please provide me with a up-to-date best practice solution to mount my Truecrypt volumes at boot with secure password prompt! I may accept a answer that has nothing to do with Truecrypt and ...
0
votes
0answers
97 views
Help setting up e4rat, no startup.log after e4rat-collect
So I've scanned through all the wiki's and posts to no avail. I'm attempting to set up e4rat on Ubuntu 12.10, and after appending init=/sbin/e4rat-collect to Grub and changing ro to rw startup.log is ...
0
votes
1answer
51 views
Redirecting /dev/null to some other device
Is it possible to redirect, ie create /dev/null as non-null device, like /dev/console or /dev/stdout? This obviously has to be done before init runs create creates a standard /dev/null. Upstart seems ...
1
vote
1answer
2k views
Booting ubuntu gives “init not found”
My friend has been using ubuntu 10.10 on vmware player for many days now. But today, it has a problem booting, so we started the ubuntu live cd to try and fix it.
Running sudo fsck /dev/sda1 (got ...
2
votes
1answer
148 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 ...
9
votes
1answer
3k 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 ...
3
votes
1answer
138 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 ...
4
votes
3answers
7k 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 ...
0
votes
0answers
118 views
Screen goes off while loading Ubuntu
Since I updated my Ubuntu to version 12.10, after booting, when Ubuntu starts loading, screen goes off (monitor shows information that no signal is recieved).
When screen goes on, first thing I can ...
3
votes
2answers
259 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 ...
0
votes
2answers
179 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 / ...
0
votes
0answers
24 views
How to start console session with password request using GRUB init=
I need to implement something like secured (under password) rescue mode.
Simply adding option init=/bin/login into GRUB menuentry works, but there is Kernel Panic when running anythink with sudo ...
0
votes
2answers
134 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 ...
3
votes
2answers
3k 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.
...
0
votes
2answers
1k views
init premount script error from dropbear
I get the following error at early boot stage:
ipconfig: eth0: SIOCGIFINDEX: No such device
ipconfig: no devices to configure
/scripts/init-premount/dropbear: .: line 32: can't open ...
0
votes
2answers
169 views
Unable to fully remove Juju
After downloading Juju and playing around with it a little bit, my curiosity is satisfied. I decided to move on to other endeavors and uninstall Juju, although despite my best efforts a piece of Juju ...
2
votes
1answer
90 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
...
0
votes
1answer
95 views
X : conditional xorg.conf file during startup
I've got a computer which I use at a couple of different sites, and I've got differen monitors at those sites. What I've done is that I've ceated different xorg.conf files for each of these sites.
...
3
votes
2answers
442 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 ...
0
votes
1answer
53 views
For processes to be up and running all the time
I want my python program sample.py to be always up and running. I have read some things and asked people about ways to do this. So far I have following options -
Upstart
Cron
I am trying things ...
2
votes
3answers
1k 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
2answers
7k 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 ...
0
votes
0answers
357 views
How to control Jenkins daemon? /etc/init/jenkins.conf vs /etc/init.d/jenkins
I initially installed a recent version of Jenkins as a daemon using the default Ubuntu repository (12.04 LTS) and was able to use the usual 'sudo service jenkins start/stop' to control it. I then ...
1
vote
4answers
3k views
Boot mounts failing after power outage
UPDATE 1
Output of sudo fdisk -l
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 ...
3
votes
1answer
78 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 ...
0
votes
1answer
49 views
Prevent new packages from linking start up scripts?
How can i prevent newly installed packages from creating links in e.g /etc/rc2.d?
Currently i'm launching update-rc.d -f blabla remove /etc/rc.local each time during boot.
But this shouldn't be ...
0
votes
1answer
194 views
Why my upstart script don't work?
It is strange the script use to work fine,but after the proxy went down for a while,it don't work all the time. But the command in script section can still do it's job,and I have no idea what's going ...
4
votes
2answers
8k 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 ...
10
votes
2answers
1k 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 ...
1
vote
2answers
130 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 ...
1
vote
1answer
1k views
Start-up problems - some daemons not starting
This is a new installation of 12.04 and I can see that my machine is using both the old sysvinit method and the new upstart method to launch programs on start-up.
According to the man page for ...
3
votes
6answers
3k 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 ...
1
vote
1answer
525 views
Fresh install of 12.04 Kernel panic
I am attempting to install Ubuntu 12.04 on my computer. After the Ubuntu splash screen, the computer throws up this error:
sr 2:0:1:0: [sr0] Unhandled error code
Kernel panic - not syncing: Attempted ...
0
votes
1answer
393 views
init error, laptop do not boot
I turned my computer on and it comes up with ways to boot and I clicked Ubuntu with linux 2.6.38-13-generic. There was a recovery mode too. Once I clicked its writing come up:
init: udevtrigger main ...
1
vote
3answers
4k 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 ...
5
votes
2answers
2k 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, ...
1
vote
0answers
200 views
Decrease Boot Time [duplicate]
Possible Duplicate:
Improve Boot time
I have an 11.10 system that takes a while to boot. I ran bootchart and it reported that there was a block of time about 10 seconds long where there was ...
2
votes
0answers
338 views
Ubuntu doesn't boot after apt-get upgrade (black screen) [duplicate]
Possible Duplicate:
My computer boots to a black screen, what options do I have to fix it?
Some time ago (2 weeks) I ran apt-get upgrade. When complete I turned off the computer. I was on ...



