#Daemon

Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2025-05-03

When writing a #daemon that follows best practices (handling of #detaching with a locked #pidfile, and #SIGHUP for #configuration #reload), an extremely simple "init script" will do (reliably!) for #FreeBSD's mewburn-rc. 😎

#C #coding #swad

FreeBSD "init script" for swad, basically just declaring some metadata for the mewburn rc framwork.
Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2025-05-02

I *think* the #configuration #reload support for #swad is complete now (minus docs). But I'll have a lot to test, because it actually does a lot. 🙈

* Update several global properties like whether or not to resolve remote hosts, the route for the login endpoint, the directory where to look for custom resources (templates/style) ...
* Update the session creation rate limit ONLY on changes.
* Update all credentials checkers simply by re-creating them, here assuming the same name means the same semantics.
* Update all realms, versioning them (only when changed), as well as their and the global failed login rate limit, so the authenticator can know from the version whether something should be considered stale.
* Update all "servers" trying to do as little as possible on them: If port, hosts to bind to and protocol preference (IPv4/IPv6) stays the same, only enable/disable TLS if needed, and for enabled TLS, recreate the OpenSSL context to use a potentially changed certificate. Otherwise, do a "graceful shutdown" (stop listening, but keep connections alive) and create a NEW server.
* Attempt to reload any custom templates and a custom style.css from the resources dir.

Some settings are silently ignored on reload because there's no sane way to change them mid-flight, for example user/group to run as, the pidfile location, the threadpool configuration ...

All this also needs to be documented, plus a special pitfall when starting as root, but dropping privileges: Initial configuration happens while still privileged, so we can bind to low (privileged) ports, run the pam helper as root, and read files only root can read ... all of this could break on reloading the config. 🤪

#C #daemon #coding

OpenSauce :gentoo: :emacs:OpenSauce@fosstodon.org
2025-05-02

I finally got around to messing with the Emacs daemon and `emacsclient`, and *wow* this is snappy.
I feel like I've been using Emacs wrong this whole time!

#emacs #daemon #GNU #foss #OpenSource #Linux

2025-04-25

Wir haben einen Dämon in unserem Haus gefunden
Wir haben ja traditionell ein gutes Verhältnis zu unseren Dämonen. Hannya hatte sich versteckt wir haben sie aber als Familienmitglied auf genommen. Willkommen 般若!

word.undead-network.de/2025/04
#daemon #demon #eifersucht #envy #hannya #jealousy #neid #welcome #willkommen

般若般若
Daniel SuarezDanielSuarez
2025-04-19

TODAY is the day to get Get DAEMON eBook for just $1.99! This is a *Top Reads* Gold Box deal on Amazon Kindle.

*Applies to Rakuten Kobo too!

amazon.com/dp/B003QP4NPE/

kobo.com/us/en/ebook/daemon-2

2025-04-15

I curse you to read every word that ends with the letter D as a #daemon in the #Linux #systemd sense and then spend an ungodly amount of time trying to figure out what that daemon is for. Like, what do the programs rea, wor, and spen do?

What? I don’t want to suffer alone!

Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2025-03-31

Trying to come up with my own little self-hosted #http #authentication #daemon to work with #nginx' "authentication request" facility ... first step done! 🥳

Now I have a subset of HTTP 1.x implemented in #C, together with a dummy handler showing nothing but a static hello-world root document.

I know it's kind of stubborn doing that in C, but hey, #coding it is great fun 🙈

github.com/Zirias/swad

Bc Clarity Carlton-MartinClarity@c.im
2025-03-22

When in wake up with songs before coffee, I KNOW it is gonna be an awesome day @BernardoKastrup #Daemon

KEXP 🎶 #NowPlaying BotKEXPMusicBot@mastodonapp.uk
2025-03-20
Efexor Zolpidem :v_com:capeta@ursal.zone
2025-02-14

coisas que só pelo título é impossível dizer se é documentação de software ou um tratado de bruxaria:

ibm.com/docs/en/tsmfsm/7.1.4?t

#bamblers #daemon #witchcraft

2025-02-11
EIDA
Senrigan
Omnipotence

#Eida #Daemon #Boruto #Naruto #Anime
2025-02-10

Returning to an old favourite this evening to get back into the reading habit #Reading #DanielSuarez #Daemon

A SoftBank copy of the Daniel Suarez book “Daemon”
2025-02-04

#Commandline setup of a #reticulum #radio #rnode , and the required #rnsd #rns #daemon #software, as a #transportnode to forward #lora packets from other rnodes in the #loramesh . These commands can be used over #ssh to set up a #headless computer that powers and runs the rnode (as an "interface") via #usb connection from the computer e.g. #RaspberryPi #raspberrypizero2 . Includes command line #flashing of the rnode #firmware and setting the radio settings for #867mhz

youtube.com/watch?v=D2sfkqeyQy

a screenshot of what the command line shows when the command  rnodeconf is run.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst