Page 1 of 1

[SOLVED] Entries in /etc/inittab

PostPosted: Jan 9th, '14, 18:27
by linuxdad
I have been using /etc/inittab in my Linux systems for a while now. Although I am noticing that Mageia does not have this feature?? (true or not).

If there is no /etc/inittab configuration, what will start up the applications and insure that they remain running?

Is this the systemd utility? (sorry about answering my own questions here, but I want to fully understand the methods employed).

Thank you.

Re: Entries in /etc/inittab

PostPosted: Jan 9th, '14, 20:00
by doktor5000
Well, it's still existent:

Code: Select all
[doktor5000@Mageia3 ~]$ urpmf '^/etc/inittab'
initscripts:/etc/inittab
initscripts:/etc/inittab


[doktor5000@Mageia3 ~]$ cat /etc/inittab
# inittab is no longer used when using systemd.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.

#
# Ctrl-Alt-Delete is handled by /etc/systemd/system/ctrl-alt-del.target
#
# systemd uses 'targets' instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To set a default target, run:
#
# ln -s /lib/systemd/system/<target name>.target /etc/systemd/system/default.target
#
ca::ctrlaltdel:/sbin/shutdown -t3 -r now


And yes, systemd is the replacement for SysVinit init system.
There are some explanations in http://en.wikipedia.org/wiki/Init#SysV-style and at then end pointers to alternative init systems.

Please check again the previous hint about systemd documentation: viewtopic.php?p=42717#p42717

Re: Entries in /etc/inittab

PostPosted: Jan 13th, '14, 22:45
by linuxdad
The reference of the default run level is very helpful.

I am primarily interested in the process monitoring and launching capabilities from the /etc/inittab file.

I currently have several entries which are marked as respawn so that they can be monitored and then restarted if they fail. Is there a replacement for this in Mageia? The present initscripts do not appear to be working as they used to be.

Thank you.

Re: Entries in /etc/inittab

PostPosted: Jan 13th, '14, 23:17
by doktor5000
The replacement is called systemd - normal initscripts should still work, inittab entries have to be replaced by systemd units.

Re: Entries in /etc/inittab

PostPosted: Jan 13th, '14, 23:55
by linuxdad
Thank you, I appreciate your guidance.

Re: Entries in /etc/inittab

PostPosted: Jan 14th, '14, 00:09
by doktor5000
Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks

Re: Entries in /etc/inittab

PostPosted: Jan 14th, '14, 01:09
by linuxdad
I think that this site will be an invaluable resource.

http://n3mesisfixx.blogspot.com/2012/08/migrate-etcinittab-job-to-systemd-in.html

Now I can mark the entry solved.