[SOLVED] Entries in /etc/inittab

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Entries in /etc/inittab

Postby linuxdad » Jan 9th, '14, 18:27

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.
Last edited by linuxdad on Jan 14th, '14, 01:09, edited 1 time in total.
Albert E. Whale, CEH CHS CISA CISSP
President - Chief Security Officer
IT Security, Inc. - http://www.IT-Security-inc.com
Pittsburgh, PA
Email: Albert.Whale@IT-Security-inc.com
linuxdad
 
Posts: 123
Joined: Nov 17th, '13, 21:14

Re: Entries in /etc/inittab

Postby doktor5000 » Jan 9th, '14, 20:00

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18070
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Entries in /etc/inittab

Postby linuxdad » Jan 13th, '14, 22:45

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.
Albert E. Whale, CEH CHS CISA CISSP
President - Chief Security Officer
IT Security, Inc. - http://www.IT-Security-inc.com
Pittsburgh, PA
Email: Albert.Whale@IT-Security-inc.com
linuxdad
 
Posts: 123
Joined: Nov 17th, '13, 21:14

Re: Entries in /etc/inittab

Postby doktor5000 » Jan 13th, '14, 23:17

The replacement is called systemd - normal initscripts should still work, inittab entries have to be replaced by systemd units.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18070
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Entries in /etc/inittab

Postby linuxdad » Jan 13th, '14, 23:55

Thank you, I appreciate your guidance.
Albert E. Whale, CEH CHS CISA CISSP
President - Chief Security Officer
IT Security, Inc. - http://www.IT-Security-inc.com
Pittsburgh, PA
Email: Albert.Whale@IT-Security-inc.com
linuxdad
 
Posts: 123
Joined: Nov 17th, '13, 21:14

Re: Entries in /etc/inittab

Postby doktor5000 » Jan 14th, '14, 00:09

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18070
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Entries in /etc/inittab

Postby linuxdad » Jan 14th, '14, 01:09

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.
Albert E. Whale, CEH CHS CISA CISSP
President - Chief Security Officer
IT Security, Inc. - http://www.IT-Security-inc.com
Pittsburgh, PA
Email: Albert.Whale@IT-Security-inc.com
linuxdad
 
Posts: 123
Joined: Nov 17th, '13, 21:14


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest