question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a way to start runit

See original GitHub issue

Hi,

I was wondering if it was possible to combine this with runit, explicitly making this container work: https://github.com/dockage/alpine-runit/blob/master/Dockerfile#L29 I have tried all kind of things like replacing the CMD with:

ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/sbin/runit-init"]

But when I use the above and I start the container I get usage: /sbin/runit-init 0|6.

I could get it to work with CMD ["runsvdir", "-P", "/service"], but I would like to use the files that are being used by the image in /etc/runit (see https://github.com/dockage/runit-scripts/tree/master/alpine/etc/runit).

So is there a way to get this to work?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
samrocketmancommented, Jun 5, 2018

@Ilyes512 I have explained how to start runit in another issue. https://github.com/Yelp/dumb-init/issues/158#issuecomment-369358986

I realize you’re trying to use runit differently but just adding another concrete example of runsvdir.

0reactions
Ilyes512commented, Jun 5, 2018

@samrocketman I already solved this and I probably came across your answer back then 😃.

Thanks! I am closing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

runit-quickstart - GitHub Pages
The purpose of this tutorial is to get you up and running with runit as quickly as possible. According to the official documentaion,...
Read more >
Runit - ArchWiki
Runit is a process supervisor. It includes runit-init , which can replace sysv's init as pid1, or can be run from inittab or...
Read more >
Setting up a Functional runit Service | 25 Days of Linux - Medium
runsv : It starts and monitors the service (and optionally the log service associated with the service if created). It is a crucial...
Read more >
runit - a UNIX init scheme with service supervision
runit is a cross-platform Unix init scheme with service supervision, a replacement for sysvinit, and other init schemes. It runs on GNU/Linux, *BSD,...
Read more >
Use runit! - Mike Perham
Compare that with a typical init.d script which might be 50+ lines of bash! Now that we've defined the process and told runit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found