linux restart service
systemctl restart SERVICE_NAME
4
2
systemctl restart <name>
Thank you!
2
0
3.5
2
sudo systemctl enable minetest
Thank you!
2
0
4.25
4
You can use sc start [service] to start a service and sc stop [service] to stop it. With some services net start [service] is doing the same.
But if you want to use it in the same batch, be aware that sc stop won't wait for the service to be stopped. In this case you have to use net stop [service] followed by net start [service]. This will be executed synchronously.
Thank you!
4
0
4.14
7
sudo systemctl start minetest
Thank you!
7
0
Are there any code examples left?
New code examples in category Other