Skip to content

Service not restarted #4121

@webfrank

Description

@webfrank

Hi, I have a go application, configured as a service, which sometimes crashes (investigating) but the service is never restarted and I need to reset the VM.

The only difference is logging to console:

- name: landscape
    image: ***redacted***
    capabilities:
     - CAP_NET_BIND_SERVICE
    binds.add:
    - /etc/resolv.conf:/etc/resolv.conf
    - /var/lib/landscape:/app/data
    command: ["sh", "-c", "/app/landscape > /dev/console 2>&1"]
    net: host
    devices:
    - path: "/dev/console"
      type: c
      major: 5
      minor: 1
      mode: "0666"

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