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, Nov 9, 3:43 AM
Unknown Object (File)
Thu, Nov 7, 7:08 AM
Unknown Object (File)
Wed, Oct 16, 4:43 PM
Unknown Object (File)
Oct 15 2024, 1:50 AM
Unknown Object (File)
Oct 13 2024, 5:08 AM
Unknown Object (File)
Oct 11 2024, 6:42 PM
Unknown Object (File)
Oct 9 2024, 12:07 PM
Unknown Object (File)
Oct 8 2024, 3:23 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.