Linux: Services
In linux a service is also called a Daemons.
It is started in background in the operating systems.
Starting Of services:
Service sshd start
Or
systemctl start sshd.service
Status of a service:
Systemctl status sshd.service
Or
Service ssh status
This command will show service status of the service sshd
Stop the daemons/Service:
systemctl stop sshd service
Or
service sshd stop
Start a service at boot time
systemctl enable sshd.service
This will start the service sshd at the boot time
--------------------------------------------------------------------------------------------------------------------------
Identifying SystemD Startup services:
#pstree | less
we can see at the very top of the heap sits systemD. From it everything else is spawned
It is started in background in the operating systems.
Starting Of services:
Service sshd start
Or
systemctl start sshd.service
Status of a service:
Systemctl status sshd.service
Or
Service ssh status
This command will show service status of the service sshd
Stop the daemons/Service:
systemctl stop sshd service
Or
service sshd stop
Start a service at boot time
systemctl enable sshd.service
This will start the service sshd at the boot time
--------------------------------------------------------------------------------------------------------------------------
Identifying SystemD Startup services:
#pstree | less
we can see at the very top of the heap sits systemD. From it everything else is spawned
Comments
Post a Comment