Hello Everyone,
I am relatively new to Linux and am currently running CentOS on a VPS. I am trying to get a better understanding of services management systems such as systemd, systemctl, and chkconfig. Where can I find some layman documentation where I can learn how to use these facilities?
I am basically trying to get noip2 (which I have installed as root and is now under usr/local/bin) to run when I start the system. I have other applications that I would also like to run on startup and I believe that resolving the noip2 issue would also enable me to apply the same solution to the others.
Thank you in advance for your help.
Raul
systemd systemctl chconfig
Re: systemd systemctl chconfig
The new init system on CentOS 7 is systemd. You control that with systemctl. There are aliases for the old service and chkconfig commands that translate them to to the equivalent systemctl commands but it's encouraged that you learn the systemctl version of chkconfig so you don't see the messages from chkconfig telling you that it's obsolete and being forwarded to systemd.
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
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
Re: systemd systemctl chconfig
Thanks Trevor.TrevorH wrote:The new init system on CentOS 7 is systemd. You control that with systemctl. There are aliases for the old service and chkconfig commands that translate them to to the equivalent systemctl commands but it's encouraged that you learn the systemctl version of chkconfig so you don't see the messages from chkconfig telling you that it's obsolete and being forwarded to systemd.
I tried to launch some systemctl commands but I have the feeling it simply isn't installed on my system (6.5 32bit, coming with the VPS); I also tried to search through yum, but I couldn't find it. These are the system responses, am I doing something wrong or do I need to install it?
[root@c1106255-5691 ~]# systemctl enable /usr/local/bin/noip2.service
-bash: systemctl: command not found
You have new mail in /var/spool/mail/root
[root@c1106255-5691 ~]# systemctl --version
-bash: systemctl: command not found
[root@c1106255-5691 ~]# yum list systemd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.iweb.ca
* extras: centos.mirror.ca.planethoster.net
* rpmforge: mirror.us.leaseweb.net
* updates: less.cogeco.net
Error: No matching Packages to list
How can I install it in my system from a reliable source?
Raul
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: systemd systemctl chconfig
CentOS 6 does not use systemd.
Re: systemd systemctl chconfig
Thanks Gerald, this clarifies.gerald_clark wrote:CentOS 6 does not use systemd.
Raul
Re: systemd systemctl chconfig
On CentOS 6 you need to use chkconfig to control when/if services are started/stopped automatically at boot. If you want to stop/start them manually then use the service command.
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
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