multi target openrc script
Zoltan Puskas <[email protected]>
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <achtI0DgyFxCrXSR@hal9000> |
Hi, I'm seeking advice regarding multi target OpenRC init scripts. I'm writing an init script to deal with starting up dm-integrity targets, and I think I would want to get it included in sys-fs/cryptsetup eventually. However a user can have multiple disks with an integrity layer, and I think the init should support setting up all of them. My question: what is the recommended way of dealing with this? I've looked at some existing documentation[1][2], but did not find a definitive answer for it. It seems to me different packages deal with this differently. What I've seen so far in practice: - netfirc: Singular configuration file /etc/conf.d/net, but requires a net.<interface_name> symlink per device in /etc/init.d. - dmcrypt (from sys-fs/cryptsetup): has a singular /etc/conf.d/dmcrypt, and a singular /etc/init.d/dmcrypt for setting up potentially multiple LUKS volumes. Additionally it also supports symlinks in /etc/init.d to dmcrypt under different names, but also requires and equivalent config file in /etc/conf.d, which again can set up multiple targets. - spawn-fcgi: One config file per instance. Requires symlinking in /etc/init.d, one for each instance, and an accompanying config file in /etc/conf.d. Thanks, Zoltan [1] https://wiki.gentoo.org/wiki/OpenRC [2] https://github.com/OpenRC/openrc/blob/master/service-script-guide.md
signature.asc
(application/pgp-signature, 870 B)
-----BEGIN PGP SIGNATURE----- iQJPBAABCgA5FiEEyzsUa/Bn/zts2f9oJoL7EYNVSs4FAmnIcl4bFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwyAAoJECaC+xGDVUrOLbgP/RZV9AssuvTR20fnV48H RqmKrqpvxro7l75fNRqMz/vZ+inM2x+se8Ydm21nDYPpOWFFz4sAxMH4XAluIM6I pFt2mGv8W1quAFWfH088GrcGwRHD+4rZFoJksO+9w7JAGKovvlObWOIhzT4V2zES EVDqRHGiQ8PHiXePfLrI4oF1cqB5JipINHhu6tvEg27ol30DGsc9WKwNJFTyaGfg vJNzGriFj5NtyUO57h2mPYDS9xZCBQ4SC5y5ClatnfZkZplsswLFaclAE0PujVrt 2l0202KUQMGgCwa3am4tIUcfapEh0ogQmlMLhUolg02Q8edoJkeGEqG1aODbZNZl XgwaPYAvPlMuDZsyYY2eXzfI12fC8JZ/2rfi6gQ8FzJdVf0721MEf3r3AXZiYV6Z IVyC4Gs/E7jOQC73X04uGarjxOIEAYolhUKZYh6wOESLIvs9itxV3nAVCRgj/J5J N6rwMV70CzxJP8Q7hB6OxlkBg82psLPaZRS2Xqkk07bLTY9wrbfnatgxXruCnT/L CPaXSKywS9e43DsytBaiOUrxFRJMG6J65pxRkVC/vC6v+DbNvRJb86t7/EY1jJq6 +YUVAf5LUnKCPAmSBpkqDQsn3Jplm5+5PqN650woc1NdETMdmcv4kNC/4lM2/U3E ZxOqbfT6SvSYKH89pmbqX2xe =jypY -----END PGP SIGNATURE-----