Skip to content

Yggdrasild fails to start if a stale worker pid file is left behind #96

@adamruzicka

Description

@adamruzicka

To Reproduce

  1. Start yggdrasild with at least one worker
  2. kill -9 $yggdrasil_pid
  3. kill -9 $worker_pid
  4. Start yggdrasild again

Expected behavior
Yggdrasil checks that the worker pid file points to a process that does not exist anymore, removes the file and moves on.

Actual behavior
Yggdrasil fails to start

# /usr/sbin/yggdrasild
[yggd] 2022/10/10 10:23:31 /root/yggdrasil/cmd/yggd/main.go:207: starting yggd version 0.2.98
cannot stop workers: cannot stop worker: cannot stop worker: cannot stop process: os: process already finished

# echo $?
1

Additional Information

  • OS: Rocky Linux 8.5 but that shouldn't be relevant
  • Version main @ 88a5f78

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