#4121·linuxkit

Service not restarted

Author: webfrankCreated Jun 3, 2025Updated Jun 27, 2025

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:

yaml
- 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"