DevOps/Cloud By GK
  • DevOps/Cloud Introduction
  • 🚩AWS
    • Create AWS Account
    • Launch EC2 Instance
  • 🚩Linux
    • User Managment
      • Adding the User to Sudo group
      • visudo
    • Directory / File Management
      • Vi
      • Changing Permissions (chmod)
      • Filtering IO/File
    • Memory Management
    • Process Management
    • Network Management
    • Service Management
    • Environmental Variables
      • $PATH
    • Utilities
    • SHELL PROGRAMMING
      • Hello World
      • Variables
      • Command Line arguments
      • Conditional Statements
      • Array
      • Loops
      • Functions
      • AWK
      • sed
      • Example Useful Scripts
      • Basic -> Advanced
  • 🚩git
    • Introduction
    • Creating GitHub Account
    • Installation
      • Git Bash In Windows
      • Git In VS Code
      • Git In Eclipse
      • Git CLI in Linux
  • Creating Git Remote Repository
  • Git Commands L -> R
  • Git Commands L <- R
  • Git Branch Commands
  • Using SSH (Password Less)
  • 🚩maven
    • Introduction
    • Installation
    • POM.xml
    • Goals
  • 🚩SonarQube
    • Introduction
    • Sonar Cloud
    • Creating Project In SonarCloud
    • Installing Sonar-Scanner
    • Triggering Scan
  • 🚩Nexus
    • Introduction
    • Installation of Nexus
    • Creating Repository
    • Uploading Artifacts to Repository
  • 🚩Jenkins
    • Introduction
    • Installation of Jenkins
    • First Job In Jenkins
    • Git + Jenkins
      • WebHook
    • Maven + Jenkins
    • Sonar-Scanner + Jenkins
    • Nexus + Jenkins
Powered by GitBook
On this page
  1. Linux

Service Management

systemctl is a command-line utility in Linux systems that is used to control and manage the systemd system and service manager. Systemd is a software suite that provides core functionality for managing processes, services, and other system resources in modern Linux distributions.

systemctl allows you to start, stop, restart, enable, disable, and manage various system services and targets. Here are some common and useful commands you can perform with systemctl:

  • Start a service: systemctl start service-name - This command starts a specific service immediately.

  • Stop a service: systemctl stop service-name - This command stops a running service.

  • Restart a service: systemctl restart service-name - This command stops and then starts a service.

  • Enable a service: systemctl enable service-name - This command enables a service to start automatically at system boot.

  • Disable a service: systemctl disable service-name - This command disables a service from starting automatically at system boot.

  • Check status of a service: systemctl status service-name - This command displays the status and other details of a service, including whether it is running or stopped.

  • Reload systemd manager configuration: systemctl daemon-reload - This command reloads the systemd manager configuration after making changes to unit files (e.g., service files) to ensure the changes take effect.

  • List all services: systemctl list-unit-files --type=service - This command lists all installed services on the system.

  • List running services: systemctl list-units --type=service --state=running - This command lists all currently running services on the system.

These are just a few examples of the many functionalities provided by systemctl. It allows you to control and manage various aspects of system services and targets, making it an essential tool for system administration and service management in Linux distributions that use systemd.

PreviousNetwork ManagementNextEnvironmental Variables

Last updated 2 years ago

🚩