lightnegative ,

Is it r-unit, or run-it?

I've read it as r-unit for so long and now I've only just realised that run-it makes far more sense

nilclass ,

Someone is asking the important questions

renzev OP ,

lol I've been pronouncing nginx as "enn-jinx" for so long before I learned that it was "engine-ex".

onlinepersona ,

Runit, making systems easily pwnable since 2004 🎉

  • Step 1: Make a system service run as root
  • Step 2: Give service a runlevel that starts it at boot
  • Step 3: Make the file modifiable by a normal user
  • Step 4: ???
  • Step 5: pwned

Wow much philosopy. Is great. Incredible chievement. Very pressive!

Anti Commercial-AI license

duviobaz ,

I'm using Debian without ever having been involved in the init-wars. What's wrong with Systemd and why should i not use it?

renzev OP ,

If you've never had a reason to not use it, then it's fine to continue using it. Systemd has been shown to be more or less stable, fast, and secure. The reason I don't like it is because it makes simple things really complicated. Some examples:

  • The meme
  • u/phoenixz@lemmy.ca example with sshd
  • Distros that use systemd init also seems to prefer using other systemd components as well. So you can get caught in weird situations where one task is spread across two different systems (e.g. systemd timers vs cron, systemd-elogind vs acpid)

If none of these sound familiar, then switching to a non-systemd distro likely won't make your life easier. But if you do, then it might be worth considering.

yournamehere ,

systemd is for the weak.
red hat and lennart are just shit.

renzev OP ,

I don't support calling people who volunteer their time to develop free software "just shit", but I can't help but agree at least a little bit about redhat. Redhat is kind of like Richard Nixon: if you just assume that eveything you dislike is their fault, you would be right surprisingly often.

  • "Predictable" interface naming
  • avahi
  • dbus

That being said, they did also contribute to a lot of kickass software, from btrfs to Firefox to linux namespaces to qemu to pipewire, as well as to software that you can't really live without like glibc or gdb. So I guess the converse also holds: if you just assume that everything you like is there thanks to redhat, you would be correct pretty often as well. Can't really say that about Nixon though.

yournamehere ,

hitler built the autobahn.
enough to not call him shit?
doubt that.

what lennart and red hat have done is just terrible.

mholiv ,

When you hate something so much you have to find weird corner cases to support your views. Even then the way described isn’t how someone who knows that they are doing would do.

The best way for an unprivileged user to manage a service is for that user to run it. That way you inherit the correct permissions / acls / selinux contexts.

The command to do so is:

systemctl --user start the_service.service

sorrybookbroke ,
@sorrybookbroke@sh.itjust.works avatar

What if multiple users have to manage that service?

Edit: nvrmnd, pretty sure the runnit solution won't allow this either, your answer is correct. What about while the service is already running? Wouldn't your solution require a restart?

renzev OP ,

pretty sure the runnit solution won’t allow this either

I'm no expert, but I think you could make a special group, set the supervise directory to be owned by that group, and add all relevant users to that group? Either way, as I explained in a different reply, running the service as a user vs letting that user control a root service are completely different things, and one is not always a substitute for the other.

possiblylinux127 ,
@possiblylinux127@lemmy.zip avatar

Haters gonna hate

nick ,

Correct. I fucking hate systemd.

possiblylinux127 ,
@possiblylinux127@lemmy.zip avatar

Ok, just stop complaining. Almost everyone else disagrees and most of the community doesn't even know that there is a different init system. Systemd was widely accepted 6 years ago and we have moved on.

The good news is that you don't have to use it. The bad news is pretty much everyone expects you to be using it.

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • linuxmemes@lemmy.world
  • haupteingang
  • Alle Magazine