chkconfig vs systemd

General support questions
Post Reply
knzzz
Posts: 157
Joined: 2017/02/25 12:41:42

chkconfig vs systemd

Post by knzzz » 2018/01/04 08:54:27

Hi Team,

In centos 6 if i want to start a service in run level 3 i can mention it using the chkconfig --level , can some one please tell how to perform the same kind of task in centos 7 , i want to enable a service only in multiuser, non graphical mode.

Regards
Kanna

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: chkconfig vs systemd

Post by TrevorH » 2018/01/04 09:05:26

systemctl enable $service

Your unit file then has to depend on the right services so that it starts when it should and not when it shouldn't.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4531
Joined: 2007/12/11 08:17:33
Location: Finland

Re: chkconfig vs systemd

Post by jlehtone » 2018/01/05 07:29:08

Probably a 'Conflicts=' is required.
https://unix.stackexchange.com/question ... e-services

knzzz
Posts: 157
Joined: 2017/02/25 12:41:42

Re: chkconfig vs systemd

Post by knzzz » 2018/01/05 10:56:00

Hi Trevorh,

you menat to say that services are based on targets, so all the services wont run in all the targets

Regards
Kanna

Post Reply