Page MenuHomeFreeBSD

rc scripts vs. .pkgsave
AbandonedPublic

Authored by freebsd_igalic.co on Dec 30 2020, 2:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 4, 4:09 PM
Unknown Object (File)
Dec 28 2022, 2:49 AM
Unknown Object (File)
Dec 15 2022, 6:00 PM
Unknown Object (File)
Dec 13 2022, 1:13 AM
Unknown Object (File)
Nov 26 2022, 11:03 PM
Subscribers
None

Details

Summary

Draft of something Mina asked for on IRC.

Test Plan

Not yet tested at all.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

this almost works 😬

libexec/rc/rc.subr
2048

this only works after adding changing it to:

libexec/rc/rc.subr
2048
case "${file##*/}" in

to avoid the superfluous fork

Abandoning; Mina has taken this over in D27962

i'm getting this message on boot / shutdown:

Jan  6 15:59:08 beastix root[3063]: /etc/rc.shutdown: WARNING: Ignoring scratch file /usr/local/etc/rc.d/sddm.bak
Jan  6 21:05:38 beastix root[1387]: /etc/rc: WARNING: Ignoring scratch file /usr/local/etc/rc.d/sddm.bak

and i'm finding this somewhat funny, cuz neither of us noticed .bak files mentioned anywhere.