Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How to restart a service with systemctl command

$ sudo systemctl restart service-name
Comment

service restart command

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.
Comment

command to restart a system service

sudo service <service name> restart
Comment

command to restart a system service

sudo service <service name> restart
Comment

PREVIOUS NEXT
Code Example
Shell :: composer install -- 
Shell :: uninstall g2o 
Shell :: check on cmd all installed version 
Shell :: git go back to head after checkout commit 
Shell :: git pull 
Shell :: uninstall apt package ubuntu 20.04 
Shell :: kubectl patch annotation 
Shell :: step6 pgadmin ubuntu 20.04 
Shell :: git push branch 
Shell :: how to assign more than one ip address in linux 
Shell :: how to prevent ubuntu sleeping when closing laptop 
Shell :: minikube insecure registry 
Shell :: overclock raspberry pi zero 2w 
Shell :: read input from stdin bash script 
Shell :: kali linux nit signing in 
Shell :: java.util.concurrent.ExecutionException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_VERSION_DOWNGRADE: Package Verification Result 
Shell :: extracting tar.gz 
Shell :: how to scp from vm to local 
Shell :: how to make maven clean install faster in eclipse 
Shell :: git create branch without initial commit 
Shell :: apt install package version 
Shell :: stash with name 
Shell :: Create and Switch To a New Branch in git command 
Shell :: installing maven using brew 
Shell :: if clauses bash 
Shell :: create private repository github command line 
Shell :: linux apps 
Shell :: docker desktop for fedora 
Shell :: git add an entire folder to commit 
Shell :: linux ssh into machine with private key 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =