jaeger changed the topic of #crux-devel to: CRUX (https://crux.nu/) development channel | Logs: https://libera.irclog.whitequark.org/crux-devel/
farkuhar has joined #crux-devel
<farkuhar> Regarding https://git.crux.nu/ports/core/commit/cc07dcce917c0416e0c72bb13f9a15ebce2edb2c , rc.shutdown defines R_SERVICES with enough double-quotes to create a same-size array as SERVICES, but rc.single seems to be creating always a one-element array. I suggest adopting the rc.shutdown quotation style for rc.single too.
<farkuhar> I assume we use /tmp/rc.$$ instead of `/etc/rc.d/$service start 2>&1 | /usr/bin/logger -t "$service"` because the latter construct makes it harder to use the exit status of the service script for control flow. Reliable reporting of daemon startup failures is a higher priority than minimizing /tmp usage.
ivandi has quit [Ping timeout: 260 seconds]
ivandi has joined #crux-devel
chrcav_ has joined #crux-devel
farkuhar has quit [*.net *.split]
chrcav has quit [*.net *.split]
farkuhar has joined #crux-devel
<farkuhar> in bash it's not too difficult to recover the exit status of the first command in a pipeline, so if we wanted to minimize /tmp usage we could go for something like this: https://dpaste.com/E7N3QMVRE (This diff also avoids constructing R_SERVICES, opting to loop just once through the original SERVICES array.)
ivandi has quit [Quit: WeeChat 4.4.1]
ivandi has joined #crux-devel
chrcav_ has quit [Quit: leaving]
chrcav has joined #crux-devel
groovy2shoes has quit [Remote host closed the connection]
groovy2shoes has joined #crux-devel
farkuhar has quit [Quit: nyaa~]
groovy3shoes has joined #crux-devel
groovy2shoes has quit [Read error: Connection reset by peer]