Page MenuHomeFreeBSD

rc scripts vs. .pkgsave
AbandonedPublic

Authored by freebsd_igalic.co on Dec 30 2020, 2:46 PM.
Tags
None
Referenced Files
F109786976: D27847.id81371.diff
Sun, Feb 9, 12:36 PM
Unknown Object (File)
Jan 10 2025, 5:19 PM
Unknown Object (File)
Dec 9 2024, 3:29 AM
Unknown Object (File)
Dec 7 2024, 1:32 PM
Unknown Object (File)
Nov 24 2024, 8:58 PM
Unknown Object (File)
Nov 23 2024, 10:41 PM
Unknown Object (File)
Nov 21 2024, 7:44 PM
Unknown Object (File)
Nov 21 2024, 2:47 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.