Skip to content

Instantly share code, notes, and snippets.

@Risto-Stevcev
Created May 20, 2023 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Risto-Stevcev/50a904df532924a7428722b54319e30e to your computer and use it in GitHub Desktop.
Save Risto-Stevcev/50a904df532924a7428722b54319e30e to your computer and use it in GitHub Desktop.
Fix for runit user-level logging

Fix for runit user-level logging

I was getting:

λ SVDIR=~/service sv status emacsd
down: emacsd: 100s, normally up; warning: emacsd/log: unable to open supervise/ok: file does not exist
down: log: 100s, normally up

After a bit of digging, I found this answer, which fixed it. The issue is that if you add the appended log service after the service was symlinked, runit doesn't fail gracefully. The steps to fix are:

  1. Remove the symlink for the service
  2. Remove the supervise directories
  3. Add the symlink again for the service. This will recreate the supervise folders.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment