3
votes
1answer
122 views

Minimal Linux with kernel and BusyBox: /etc/inittab is ignored, only /init is executed

I managed to create a small and fully functional live Linux CD which contains only kernel (compiled with default options) and BusyBox (compiled with default options + static, all applets present, ...
0
votes
1answer
37 views

Should “invoke-rc.d” or “service” be used to restart services?

I'm confused as to which is best and in which circumstances: invoke-rc.d apache2 restart or service apache2 restart Is there a real difference? man service has the following interesting bit: ...
2
votes
1answer
2k views

Upstart documentation for CentOS 6

I am currently migrating from CentOS 5.5 to 6.4. Having fun converting /etc/inittab stuff to upstart. Ran into a lot of little problems but am getting the hang of it now. The best documentation ...
3
votes
3answers
42 views

possibilty of running deamons with under privilaged users while bootup

I have authoritative DNS daemon in my test DNS setup. which is responsible to provide host IP at best choice. Anyway this daemon/process can run by setting some capabilities using setcap and then a ...
2
votes
2answers
88 views

LFSH … what is '/lib/init' for?

I'm trying to understand the init/boot process. My system is LMDE, so I presume it will be pretty much standard Debian in that regard. I believe I more or less understand the basics of the init ...
0
votes
2answers
58 views

Run a single command at the start of the machine

Most unix servers do have services defined as init scripts, on linux in: /etc/init.d and on hp-ux in: /sbin/init.d. However, what if I just want a single command to be executed when machine boots? I ...
2
votes
1answer
625 views

How to properly use Gentoo Linux as a supplement to an existing distribution?

While I originally wanted to entirely replace the Linux distribution my NAS uses, I meanwhile came to the conclusion that it would be better to leave the existing system as unmodified as possible and ...
1
vote
1answer
568 views

How to write a pre-mount startup script?

I want to create a bootup script that runs before the root filesystem / has been mounted as I want to use dm-cache to cache it. The script is supposed to contain cache setup commands. Where would I ...
1
vote
1answer
1k views

Change init scripts priority

I'm running a raspbian (based on debian). I want to change the priority of the init services so the very first script which is run by init is one made for me. How can I do it? On runlevel S I have ...
1
vote
1answer
66 views

Init script header not resolving dependency

I need to run a /usr/sbin command in my init script, so there is a dependency for the /usr filesytem to be mounted. To resolve the dependency, I put $local_fs or boot.localfs (I also tried ...
5
votes
1answer
379 views

inittab '-' character in process field

I have a an inittab file with the following entry: console::askfirst:-/bin/ash According to this Man page a '+' character in the process field means init will not do utmp and wtmp accounting ...
2
votes
1answer
102 views

Gentoo on VM setting IP Manually

I installed Gentoo on Virtualbox with the minimal image. This is the first time I am running gentoo. I need to do ifconfig eth0 192.168.0.10 route add default gw 192.168.0.1 everytime it boots on ...
4
votes
4answers
1k views

What's the connection between “/etc/init.d” and “/etc/rcX.d” directories in Linux?

I am learning command line from a book called "Linux Command Line and Shell Scripting Bible, Second Edition." The book states this: Some Linux implementations contain a table of processes to start ...
7
votes
3answers
2k views

Why does initramfs mount the root filesystem read-only

What is the reason for the root filesystem being mounted ro in the initramfs (and in initrd). For example the Gentoo initramfs guide mounts the root filesystem with: mount -o ro /dev/sda1 /mnt/root ...
5
votes
3answers
7k views

How to run a program on boot up?

So I have this program which I manually run as root : sudo gammu-smsd -c /etc/gammu-smsdrc -d What this does is it runs the Gammu (software to manage gsm modems) and 'daemonize' it. My problem is ...
2
votes
1answer
352 views

load program/module at boot

I'm trying to load a program I wrote at boot. The program is also a module.ko and a small bash script. For the module I tried doing depmod mymodule.ko and modprobe -a and messing around with modprob ...
10
votes
2answers
540 views

Removing abstraction from Ubuntu boot process

I have been using Linux after almost 5 years and observed that boot process has been almost abstracted. I mean, not much is visible to the user what is going on behind the scenes (Due to splash ...