supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Runit in Ubuntu Jammy
@ 2022-10-01  4:07 Paul Gerdes
  2022-10-01  4:49 ` Adam Faiz
  2022-10-01 13:41 ` Lorenzo
  0 siblings, 2 replies; 5+ messages in thread
From: Paul Gerdes @ 2022-10-01  4:07 UTC (permalink / raw)
  To: supervision

[-- Attachment #1: Type: text/plain, Size: 591 bytes --]

Hello everyone. I am trying to get a minimal ubuntu desktop installation
without systemd.
Do you know if there is a way to get runit, openrc or sysvinit running as
an init replacement on modern ubuntu? Could you please give me a Guide on
how to install it and set it up?

Runit Packages are already available in Ubuntu Repos. Together with
'init-system-helpers'.
See here: https://packages.ubuntu.com/search?keywords=runit&searchon=names

I know its not officially supported in Ubuntu, but Debian 11 can run
without systemd. There should be a way to do this.

Thanks for your help
Greetings

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Runit in Ubuntu Jammy
  2022-10-01  4:07 Runit in Ubuntu Jammy Paul Gerdes
@ 2022-10-01  4:49 ` Adam Faiz
  2022-10-01 11:25   ` Lorenzo
  2022-10-01 13:41 ` Lorenzo
  1 sibling, 1 reply; 5+ messages in thread
From: Adam Faiz @ 2022-10-01  4:49 UTC (permalink / raw)
  To: supervision, Paul Gerdes

On 1 October 2022 04:07:28 UTC, Paul Gerdes <pgerdes89@gmail.com> wrote:
>Hello everyone. I am trying to get a minimal ubuntu desktop installation
>without systemd.
>Do you know if there is a way to get runit, openrc or sysvinit running as
>an init replacement on modern ubuntu? Could you please give me a Guide on
>how to install it and set it up?

I have a work in progress guide: https://codeberg.org/AwesomeAdam54321/LL_Runit_Scripts

>Runit Packages are already available in Ubuntu Repos. Together with
>'init-system-helpers'.
>See here: https://packages.ubuntu.com/search?keywords=runit&searchon=names
>
>I know its not officially supported in Ubuntu, but Debian 11 can run
>without systemd. There should be a way to do this.
>
>Thanks for your help
>Greetings

What you need to do after following the instructions.txt in that repo is copy the sv/ and service/ directories to where you want them to be, for example under etc/.

To change the init, you can do that by adding the init=/sbin/runit-init parameter to the GRUB config, specifically the list of parameters that are given to the kernel.

The init could also be set by changing the /sbin/init symlink to point to runit-init.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Runit in Ubuntu Jammy
  2022-10-01  4:49 ` Adam Faiz
@ 2022-10-01 11:25   ` Lorenzo
  0 siblings, 0 replies; 5+ messages in thread
From: Lorenzo @ 2022-10-01 11:25 UTC (permalink / raw)
  To: supervision

Hello,

On Sat, 01 Oct 2022 04:49:02 +0000
Adam Faiz <adam.faiz5990@gmail.com> wrote:

> What you need to do after following the instructions.txt in that repo
> is copy the sv/ and service/ directories to where you want them to
> be, for example under etc/.
> 
> To change the init, you can do that by adding the
> init=/sbin/runit-init parameter to the GRUB config, specifically the
> list of parameters that are given to the kernel.
> 
> The init could also be set by changing the /sbin/init symlink to
> point to runit-init.

Before doing that you need to make sure that your system will be able
to boot: with only Ubuntu packages it wont, essential (stage 1)
bootscripts are missing.

Lorenzo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Runit in Ubuntu Jammy
  2022-10-01  4:07 Runit in Ubuntu Jammy Paul Gerdes
  2022-10-01  4:49 ` Adam Faiz
@ 2022-10-01 13:41 ` Lorenzo
  1 sibling, 0 replies; 5+ messages in thread
From: Lorenzo @ 2022-10-01 13:41 UTC (permalink / raw)
  To: supervision

Hi,

On Sat, 1 Oct 2022 06:07:28 +0200
Paul Gerdes <pgerdes89@gmail.com> wrote:

> Hello everyone. I am trying to get a minimal ubuntu desktop
> installation without systemd.
> Do you know if there is a way to get runit, openrc or sysvinit
> running as an init replacement on modern ubuntu? Could you please
> give me a Guide on how to install it and set it up?
> 
> Runit Packages are already available in Ubuntu Repos. Together with
> 'init-system-helpers'.
> See here:
> https://packages.ubuntu.com/search?keywords=runit&searchon=names
> 
> I know its not officially supported in Ubuntu, but Debian 11 can run
> without systemd. There should be a way to do this.

There is probably a way but you are on your own, did you consider to do
this directly in Debian or even better in a derivative that supports
runit, like Devuan?

Anyway, going back to your question, to have runit as init system on
Ubuntu Jammy or Kinetic I would try as following (not tested!):

1. install packages available in Ubuntu;
   # apt-get install runit getty-run runit-helper
   # apt-get remove runit-run runit-systemd

2. download packages that are unavailable in Ubuntu from Debian
   and install manually: download runit-init, insserv, startpar,
   sysv-rc, initscripts [1];
   then first install [2] insserv and startpar, then sysv-rc and finally
   initscripts.
   Note that you can't proceed further if installation of those packages
   fails.
   Also, if /etc/rc2.d/ is empty, you may want to run
   'update.rc.d service-name enable' for each service that you want to
   be automatically stated on boot with runit; this is sysvinit stuff
   but see next point

3. boot with init=/lib/runit/runit-init GRUB parameter (not
   /sbin/runit-init !), and you should get at least a getty login on
   tty1. As a fallback, sysvinit scripts enabled in /etc/rc2.d/ are run
   sequentially when a corresponding (same basename) runit service is
   missing from /etc/sv/ , so you may also get other services
   running unsupervised.
   Note that no Desktop-Environment that requires systemd-logind will
   work at this stage, as systemd-logind requires systemd as PID 1.
   You need to download and install elogind, libelogind0 and
   libpam-elogind packages from Debian... and you can't do this in one
   step because elogind conflicts with systemd, and systemd doesn't
   allow to be removed while is PID 1, extra fun here!

4. if everything with step 3 is ok, proceed with installing runit-init
   package: ( init is an empty metapackage)
   # apt-get --allow-remove-essential remove init
   # apt -i /path/to/runit-init.deb

5. now start replacing sysv services with runit services: you can look
   at runscipts from the Void project, but there are many collections
   around if you search in GitHub.

Best,
Lorenzo

> 
> Thanks for your help
> Greetings


[1] https://packages.debian.org/sid/runit-init
    https://packages.debian.org/sid/insserv
    https://packages.debian.org/sid/startpar
    https://packages.debian.org/sid/sysv-rc
    https://packages.debian.org/sid/initscripts

[2] use 'apt -i /path/to/downloaded/debs/packagename.deb'


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Runit in Ubuntu Jammy
@ 2023-02-10 15:39 Adam Faiz
  0 siblings, 0 replies; 5+ messages in thread
From: Adam Faiz @ 2023-02-10 15:39 UTC (permalink / raw)
  To: pgerdes89; +Cc: supervision

Hello,
if you're still interested in this, I added the essential stage 1 boot scripts to my repo: https://codeberg.org/AwesomeAdam54321/LL_Runit_Scripts

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-02-10 15:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-01  4:07 Runit in Ubuntu Jammy Paul Gerdes
2022-10-01  4:49 ` Adam Faiz
2022-10-01 11:25   ` Lorenzo
2022-10-01 13:41 ` Lorenzo
2023-02-10 15:39 Adam Faiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).