Friday 23 October 2020

Ubuntu: Enable Disable stop start of the service at boot

Following commands can be used for enabling, dsabling, starting and stoping og a service. postgresql service is used in case:


Stop a service for the current session:

systemctl stop postgresql

Start a service for the session:

systemctl start postgresql

Check the status of service:

systemctl status postgresql
 
Disable a service and it won't auto-start at boot

systemctl disable postgresql
 
Enable service postgresql. This will make it auto-start
 
    systemctl enable postgresql
 
 
 
 

No comments:

Post a Comment