Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-2045

Improvements to systemd service files

    XMLWordPrintable

Details

    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
          

      Attachments

        Activity

          People

            oh Oliver Haufe
            ap Andreas PĆ¼schel
            Kanika Agrawal Kanika Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: