@p @sjw @mintplague @graf @Moon
https://libslack.org/daemon/ init scripts are really just ~20 loc using that. it's the bees knees imho.
@p
idk much about ssd, i never really had to do init scripts for debian based systems.
daemon never gave me problems so far. it's really just
daemon -n fancyname -u user -- /usr/bin/theprogram
and
daemon -n fancyname -u user --stop
for starting/stopping. redirection of stdout/stderr to syslog (or a file if you want) also works using some flags. that is essentially everything i use :)
@p
> Delete and redraft considered harmful.
i didn't delete and redraft :) i guess something bugged out here with the tagged users or something like that because i deleted a space too much (or something like that).
> That does sound way better than start-stop-daemon, though.
daemon definitively made my life 100% easier in this aspect :)
> Oh, right, sorry.
no offense taken!
> sometimes this can make a notification get double-delivered.
i always wondered how the double notifications happen :)
> Yes! I'm surprised there's not a CRUX package for it, someone always puts stuff like this into at least one of the ports repos.
it doesn't seem to require many hoops to jump through for compilation:
http://ftp.slackware.com/pub/slackware/slackware64-15.0/source/n/daemon/daemon.SlackBuild
maybe i should try CRUX at some point, looks nice :)
guess i might as well try out crux. seems nice and i have enough spare thinkpads :P
the glossiness of a projects page (or the projects ui, for that matter) seems to be inversely proportional to how useful the project is.
better revel in the nice things that exist: the "supported platforms" part of libslack is really the cherry on top. not many things can claim to support GNU hurd :)
@p
> Plan 9's fun, I'm a big fan. You probably know that already, though, because I never shut up about it.
yeah, i think i've noticed that a while back :)
@p
yeah, probably a good idea :D
@sjw @mintplague @graf @Moon
> i always wondered how the double notifications happen :)
> it doesn't seem to require many hoops to jump through for compilation
Yeah, it's just nice when someone else increments a version number. It's ridiculously easy to make your own ports repo¹, but "Okay, let's figure out where the download page is, let's figure out the new version, let's see if it builds" etc., just nice when someone else does it unless it's critical infrastructure.
> maybe i should try CRUX at some point, looks nice :)
It makes Slackware look bloated; other than that, if you run Slackware, everything will make sense, just there's less of it. The ports system is nicer than Slackbuilds. It is somewhat more minimal, so I run Slackware on servers most of the time. (I was using Devuan a lot, which I regret; I should have just stuck with Slackware.)
> it doesn't seem to require many hoops to jump through for compilation
Indeed. I had a look at libslack, that is really cool stuff. Aside from the
¹ You can basically figure it out by looking at /etc/ports/core.rsync. Ends with rsync, all right, rsync server. Contents of the file:
host=crux.nu
collection=ports/crux-3.6/core/
destination=/usr/ports/core
It's in the manual but you can probably just guess how to make a ports repo. So I've been running a personal ports repo for about as long as I've been running CRUX.