Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux restart service

systemctl restart SERVICE_NAME
Comment

Debian restart service

systemctl restart <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

restart service hpux

#hpux
/sbin/init.d/<SERVICE> start
Comment

PREVIOUS NEXT
Code Example
Shell :: venv activate 
Shell :: squelize-cli create empty migration 
Shell :: install crate rust 
Shell :: how to drive linux 2020 bluetooth on ubuntu 
Shell :: create gitignore files windows 
Shell :: revert back to a commit git 
Shell :: Python plot graph in bash 
Shell :: link php with php 8 mac 
Shell :: ubuntu ifconfig not found 
Shell :: linux search file by name 
Shell :: bash try catch 
Shell :: rm recursive file pattern 
Shell :: npm forever 
Shell :: git replace with origin branch 
Shell :: rollback git 
Shell :: rem command in batch file 
Shell :: Sticky notes for Linux(Ubuntu) 
Shell :: connect to wifi linux 
Shell :: docker.service: Unit entered failed state. 
Shell :: change user to sudo kali 
Shell :: ubuntu check ssh 
Shell :: change root password for kali 
Shell :: shared folder virtualbox ubuntu 
Shell :: ls line by line terminal 
Shell :: sonarqube docker setup 
Shell :: jest 
Shell :: Exit bash script if not running as root 
Shell :: how to get list of users in ubuntu 
Shell :: live-server command 
Shell :: wsl restart 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =