[ RESOLVED ] systemctl: command not found - DevDummy


Views | Thoughts | Concepts | Techniques

Tuesday, October 03, 2017

[ RESOLVED ] systemctl: command not found

systemctl: command not found

When you are trying to start a service in Cent OS 6 environment with above command, you may have noticed that the above command is giving an error,

$ systemctl start postgresql

systemctl: command not found

The reason is quite straightforward, being a part of systemdsystemctl is not available in CentOS 6. The package is available from Cent OS 7 version.

In Cent OS 6 you can use instead,

service postgresql start 

Please note that the service name and the operation definitions are interchanged when using the service command.


01. https://en.wikipedia.org/wiki/Systemd
02. https://www.linux.com/learn/understanding-and-using-systemd