Monday, 12 October 2020

Service control in Linux (Ubuntu)

 As root or with sudo

List all services
systemctl list-units --all --type=service --no-pager

Start|Stop a service
systemctl start|stop application.service

Restart a service
systemctl restart application.service

Enable|Disable a service
systemctl enable|disable application.service

No comments:

Post a Comment