Page MenuHomeFreeBSD

rc: add ${name}_setup script support
ClosedPublic

Authored by franco_opnsense.org on Aug 1 2022, 9:36 AM.
Tags
Referenced Files
F150306935: D36006.diff
Tue, Mar 31, 2:01 AM
F150277523: D36006.diff
Mon, Mar 30, 7:49 PM
Unknown Object (File)
Wed, Mar 25, 5:26 AM
Unknown Object (File)
Tue, Mar 24, 3:24 PM
Unknown Object (File)
Tue, Mar 24, 3:24 PM
Unknown Object (File)
Sun, Mar 22, 4:47 PM
Unknown Object (File)
Sun, Mar 22, 7:33 AM
Unknown Object (File)
Sun, Mar 22, 1:55 AM

Details

Reviewers
oshogbo
Summary

Run a service-based setup script before running the start command.
Useful for automatic configuration file generation.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46698
Build 43587: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Aug 1 2022, 9:42 AM
jlduran added inline comments.
libexec/rc/rc.subr
1156

I wonder if check_startmsgs && warn... should be prepended.

@oshogbo I don't have the means to commit so if you would pick that up when you have some time that'd be highly appreciated

libexec/rc/rc.subr
1156

Doesn't seem to be a practice with "warn". Only for raw echo in non-error condition. Wouldn't want to start that trend also for risk of hiding relevant information in some cases.

0mp added a subscriber: 0mp.