Basic SystemD Service Health Conditions
This document (7014607) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Desktop 12
SystemD
Situation
Resolution
Viewing the Current State of the Service
# systemctl show cups.service | grep State=
LoadState=loaded
ActiveState=active
SubState=running
UnitFileState=enabled
You can also run systemctl with the status subcommand to show any errors in the log.
# systemctl status cups.service
cups.service - CUPS Printing Service
Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
Active: active (running) since Fri 2014-02-21 12:12:20 UTC; 47min ago
Main PID: 11563 (cupsd)
CGroup: /system.slice/cups.service
└─11563 /usr/sbin/cupsd -f
Feb 21 12:12:20 server12 systemd[1]: Started CUPS Printing Service.
Service Disabled at Boot
If a service is running, but disabled at boot time, the service will not be started when the server is rebooted. To enabled the service, run:
# systemctl enable cups.service
Service is not Running
Start the service with the systemctl command.
# systemctl start cups.service
Cause
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7014607
- Creation Date: 21-Feb-2014
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Desktop
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com