Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux services

# Check if the service is running
systemctl status SERVICE_NAME.service

# Stop service
systemctl stop SERVICE_NAME.service

# Check if autostart is enabled
systemctl is-enabled SERVICE_NAME.service

# Disable autostart
systemctl disable SERVICE_NAME.service
Source by www.ibm.com #
 
PREVIOUS NEXT
Tagged: #linux #services
ADD COMMENT
Topic
Name
3+7 =