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)
Fri, Apr 5, 9:10 AM
Unknown Object (File)
Jan 31 2024, 12:05 PM
Unknown Object (File)
Jan 11 2024, 11:58 AM
Unknown Object (File)
Dec 20 2023, 12:33 AM
Unknown Object (File)
Dec 10 2023, 9:17 PM
Unknown Object (File)
Oct 17 2023, 3:35 PM
Unknown Object (File)
Oct 17 2023, 12:13 PM
Unknown Object (File)
Oct 13 2023, 8:22 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.