restart a service linux code example
Example 1: systemd stop service and start
sudo systemctl enable minetest
Example 2: systemd stop service and start
sudo systemctl start minetest
sudo systemctl enable minetest
sudo systemctl start minetest