Skip to content

status queries systemd user units although schedule-permission is set to system #644

Description

@obermeier089-cmyk

Hello,

I am using resticprofile 0.32.0 on a Linux server (Ubuntu 24.04) as root, with schedules installed as systemd system units under /etc/systemd/system/.

My config explicitly uses:

backup:
  schedule:
    - "02:30"
  schedule-permission: system

check:
  schedule: "04:00"
  schedule-permission: system

check:
  schedule: "04:00"
  schedule-permission: system

The timers/services work correctly, but resticprofile status still prints:

cannot list user units: error running command: exit status 1
Failed to connect to bus: No medium found

Even after:
resticprofile schedule --reload

the behavior remains unchanged.

This seems to be a status-only issue. It would be great if status could skip user unit lookup for schedule-permission: system, or at least ignore missing user bus more gracefully.

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions