mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

8.1K
active users

#systemd

22 posts21 participants0 posts today

#Nix #Systemd #Bash #ProgrammingHelp

git.krutonium.ca/Krutonium/Nix

Does anyone know how to make it so that instead of just grabbing the latest PNG file, systemd passes the file in question to the script? %f doesn't seem to work; $1 ends up giving me the name of the binary and $2 is undefined.

Summary card of repository Krutonium/NixOS
Krutonium's Forgejo ServiceNixOS/user/krutonium-hm-extras/screenshot-uploader.nix at masterNixOS

I recently encountered a very weird problem with a #Systemd managed service. The service refused to start on Enterprise #Linux (EL) 7, but worked on all newer releases.

After my analysis it all came down to a different behaviour depending on Systemd's version: Escaping or not escaping double-quotes inside the ExecStart command line! 🤯

claudiokuenzler.com/blog/1506/

Claudio Kuenzler · Systemd service not starting under CentOS / RHEL 7 but works on newer releasesBy Claudio Kuenzler
Replied in thread

@XLibreDev @antijingoist @resingm well, I've read enough drama re: this whole ordeal.

Or to put it in simple terms:

  • "Please, fork off!"

As shitty as it may seem, #Xorg is 'on live support' (like a braindead organ donor) and #Xlibre won't change the fact that the course of #Wayland is locked in.

OFC people have the right to build their own Wayland & #SystemD-free #Linux or #Unix-esque distro.

  • I just don't see anyone wanting to build drivers for at best 1% of Desktops and nieche Distros not following #LSB conventions.

Instead I'm convinced #Wayback by @ariadne will be the solution for the problem when it comes to #X11 applications & desktops that don't work on #Xwayland!

🌘 利用 systemd-inhibit 保持工作階段連線
➤ 避免 SSH 工作階段因系統睡眠而中斷的實用技巧
kd8bny.com/posts/session_inhib
本文介紹一種利用 `systemd-inhibit` 工具,在遠端 SSH 工作階段中防止系統進入睡眠狀態的方法。作者透過建立一個長久執行的背景程序,並利用 `systemd-inhibit` 鎖定系統閒置功能,成功解決了遠端工作時因系統睡眠而導致的 SSH 工作階段中斷問題。文章詳細說明瞭設定步驟、指令用法、以及透過 Bash 別名簡化操作的方法,並提及了 `caffeine` 等替代方案。
+ 這個方法很巧妙,解決了我長期以來遠端工作時會遇到的問題!感謝作者分享。
+ 將 `systemd-inhibit` 與背景指令結合,確實是一個有效且資源消耗低的方法。
#Linux #systemd #Bash #SSH #Inhibiting Sleep

~/kd8bny · Keeping sessions alive with systemd-inhibitLets learn how to use systemd-inhibit to block systems idle states.

Ah yes, the classic "keep my #SSH #session alive" conundrum, now with the thrilling twist: systemd-inhibit! 🎉 Because who doesn't love adding more #complexity to their #home #lab setup? 💻 Just wait until you need to explain this to someone using Windows—oh, wait, no one ever will. 🙄
kd8bny.com/posts/session_inhib #management #systemd #tech #humor #HackerNews #ngated

~/kd8bny · Keeping sessions alive with systemd-inhibitLets learn how to use systemd-inhibit to block systems idle states.
Replied to bluca

@bluca I'd just like to interject for a moment. What you're refering to as #Linux, is in fact, Systemd/Linux, or as I've recently taken to calling it, #Systemd plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning Systemd system made useful by the Systemd daemon, shell utilities and vital system components comprising a full OS as defined by POSIX...

#systemd v258 has been released! This took a while, as the process to decide which of your favourite, venerable tool that did one thing and did it well to kill and subsume is long and laborious. But we got there in the end. Go check the release notes to find out which one it will be this time around:

github.com/systemd/systemd/rel

CHANGES WITH 258:
Incompatible changes:
    * Support for cgroup v1 ('legacy' and 'hybrid' hierarchies) has been
      removed. cgroup v2 ('unified' hierarchy) will always be mounted
      during s...
GitHubRelease systemd v258 · systemd/systemdCHANGES WITH 258: Incompatible changes: * Support for cgroup v1 ('legacy' and 'hybrid' hierarchies) has been removed. cgroup v2 ('unified' hierarchy) will always be mounted during s...
Replied in thread

@ireneista @existentialcomics

I honestly greatly prefer #OpenBSD's attitude of, "This is our system, we made it the way we want it, if you don't like it, go eff yourself or run Linux or something, whatever" over #systemd's "Here's a few million lines of source code, you don't *wink* have to *wink* use it of course, we'll only pester the ever living fork out of ever major distro to use it and wage psychological warfare on Debian maintainers until they comply. *wink* *uwu*"

Oh and of course, if you complain about it, we'll just say "Oh, but SYSVinit sucked so hard, what is even wrong with you, you actually want to maintain SHELL SCRIPTS?!?" as if we're just an init system anymore, lol

Honestly, the level of psyops from these people should inspire the republicans.

Replied in thread

@bls yeah, there are a bunch of ways to do this involving various services. I have my class use #systemd to push the IP to GitHub, but it’s not secure. An AWS instance would also work, but same security problems.

Good show #systemd … impatiently keep re-starting a service every few minutes as it's booting up because it's grinding through 5 years of time-series data at start-up and not starting up with the speed of /bin/true.

…because mindlessly re-starting it mid-boot is really going to speed that up!