Systemd reporting /etc/systemd/system/cbdaemon.service:18 Not an absolute path for Sensor
search cancel

Systemd reporting /etc/systemd/system/cbdaemon.service:18 Not an absolute path for Sensor

book

Article ID: 377041

calendar_today

Updated On:

Products

Carbon Black EDR (formerly Cb Response)

Issue/Introduction

In /var/log/messages, the following info level message is reported.

systemd: [/etc/systemd/system/cbdaemon.service:18] Not an absolute path, ignoring: -/opt/carbonblack/response/bin

Environment

  • Carbon Black Sensor: 7.2.0 and higher
  • Linux: All Supported Versions

Cause

systemd is reporting the use of a non-absolute path. 

Resolution

This is an info level message from systemd that does not affect the sensor.

The /etc/systemd/system/cbdaemon.service uses a valid prefix of dash (-) for the WorkingDirectory and by design. See additional information for more.

WorkingDirectory=-/opt/carbonblack/response/bin

 

 

Additional Information

  • Systemd man pages describe the dash as a valid prefix to this field. 
    WorkingDirectory=
    Takes a directory path relative to the service's root directory specified by RootDirectory=, or the special value "~". Sets the working directory for executed processes. If set to "~", the home directory of the user specified in User= is used. If not set, defaults to the root directory when systemd is running as a system instance and the respective user's home directory if run as user. If the setting is prefixed with the "-" character, a missing working directory is not considered fatal. If RootDirectory=/RootImage= is not set, then WorkingDirectory= is relative to the root of the system running the service manager. Note that setting this parameter might result in additional dependencies to be added to the unit (see above).