Details
-
Feature
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
2.0.0
-
None
Description
Current Situation
- When executing service files systemd frequently reports the following problems:
Can't open PID file /home/sos/install/agent/agent_4225/logs/agent.pid (yet?) after start: No such file or directory
-
-
- This warning is similarly reported for Controller and JOC Cockpit.
- This warning is due to the fact that system checks too quickly for existence of a PID file.
/etc/systemd/system/js_agent_4445.service:13: Standard output type syslog+console is obsolete, automatically updating to journal+console. Please update your unit file, and consider removing the setting altogether.
-
-
-
- This warning is due to use of the syslog+console value for the StandardOutput and StandardError settings in systemd service files.
- Since version systemd/246-2 in 2020 use of syslog is deprecated.
-
Desired Behavior
- systemd service files for Controller, Agent and JOC Cockpit should include in the [Service] section the settings:
ExecStartPost=/bin/sleep 1
StandardOutput=journal+console StandardError=journal+console