this post was submitted on 15 Jul 2026
243 points (95.5% liked)

linuxmemes

32200 readers
620 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 3 years ago
    MODERATORS
    you are viewing a single comment's thread
    view the rest of the comments
    [–] cockmushroom@reddthat.com 1 points 6 days ago (2 children)
    [–] Pika@hikki.team 0 points 4 days ago (1 children)

    Fair point, and Void is cool in its own right, but there are good reasons it mostly falls under "obscure" distro category.

    First is, of course, the systemd-free nature of it. Linux world absolutely needs systemd-free distros, but your average Linux user simply doesn't know how to handle them properly, and the learning curve is somewhat steep. Besides, everyone and everything comes with an assumption you run systemd, so often times, you'll be on your own figuring out the correct fix.

    Second is a relatively small userbase. Void, while not being completely unknown, is not by any means a mainstream distro. We have those - some people still run Slackware, for example - but they quickly fall outside the scope of most users due to a relatively underdeveloped community, which is crucial for a Linux project.

    This is why Void is often not even seen as an option.

    [–] cockmushroom@reddthat.com 0 points 2 days ago (1 children)

    Runit is actually quite simple. If you want a service that your distro packages, you just have to install it and symlink it's directory from (in void's case) /etc/sv/app-or-service to /var/service/app-or-service. Inside that dir you'll find a "run" script and, maybe, a "finish" script that the service manager (sv) will use to initiate and interrupt the service. This is helpful to know if you want to create custom services; i have some for things like brightness, manual tiling, and clipboard management.

    [–] Pika@hikki.team 1 points 1 day ago (1 children)

    I see! But there's still much more than service management, not all of it packaged into the "init" part of systemd. And each of these things need to be learned. I'm not saying it's impossible, but it's just one more big headache on top of what Linux already is.

    Also, out of curiosity from someone who barely touched Void - how do you create a custom service? Is writing run and finish scripts sufficient?

    [–] cockmushroom@reddthat.com 1 points 11 hours ago

    Yeah, that's all there is to it. The finish script is optional, and rememer to make your links. You can have user level services by making links for runsvdir-USERNAME. This creates a service that manages your services.

    It could probably be more robustn but here's my setup:

    $ readlink {/etc/sv,/var/service}/runsvdir-$USER | sed "s:$USER:USERNAME:g"
    /home/USERNAME/.dotfiles/runsvdir-USERNAME
    /etc/sv/runsvdir-USERNAME
    
    $ print -l /etc/sv/runsvdir-$USER/*(.)
    /etc/sv/runsvdir-USERNAME/conf
    /etc/sv/runsvdir-USERNAME/finish
    /etc/sv/runsvdir-USERNAME/run
    
    $ print -l /etc/sv/runsvdir-$USER/*(.) | to -b -C '#' -A $'\n' cat | sed "s:$USER:USERNAME:g"
    # /etc/sv/runsvdir-USERNAME/conf
    #!/bin/sh
    
    set -eu
    
    self="$(realpath "$0")"
    root="$(dirname "$self")"
    user="$(basename "$root" | sed 's:^runsvdir-::')"
    home="/home/$user"
    
    groups="$(id -Gn "$user" | tr ' ' ':')"
    svdir="$home/service"
    #
    
    # /etc/sv/runsvdir-USERNAME/finish
    #!/usr/bin/env sh
    
    set -eu
    
    self="$(realpath "$0")"
    root="$(dirname "$self")"
    
    [ ! -e "$root/conf" ] || . "$root/conf"
    
    sv -w600 force-stop "$svdir/"\*
    #
    
    # /etc/sv/runsvdir-USERNAME/run
    #!/bin/sh
    
    # start up for user-level service configuration
    
    set -eu
    
    exec 2>&1
    
    root="$(realpath "$0" | xargs -d '\n' dirname)"
    [ ! -e "$root/conf" ] || . "$root/conf"
    
    exec chpst -u "$user:$groups" runsvdir -P "$svdir"
    #
    
    

    For clarity, the to command is an xargs alternative that's not out, yet.

    [–] Mistiygirl@lemmy.zip 0 points 5 days ago (1 children)

    No. I've never understood the point of it

    [–] cockmushroom@reddthat.com 2 points 5 days ago

    well, if you were serious in your deduction, one point of it is that arch is not your only option.