Skip to content

"usbguard.service: Control process exited, code=exited, status=1/FAILURE" if there is no directory in /var/log/ #680

@wakesend

Description

@wakesend

I mount /var/log/ to tmpfs to reduce writing & for privacy reason. When I reboot the Debian, /var/log/ will become empty (because of tmpfs).

And your software simply fail to start like this:

usbguard-daemon[2238849]: AuditFileSink: /var/log/usbguard/usbguard-audit.log: failed to open
....
usbguard.service: Scheduled restart job, restart counter is at 5.
usbguard-dbus.service: Failed with result 'start-limit-hit'.

Steps

  1. Mount /var/log/ as tmpfs (OR, simply rm -r /var/log/usbguard/)
  2. Run service usbguard restart

Expected result
Start as normal

Actual result
Fail to start

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions