Re: multi target openrc script
Michael Orlitzky <[email protected]>
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <acmBSzfHK5JFKEmc@mertle> |
On 2026-03-28 17:29:25, Zoltan Puskas wrote: > 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. The main benefit of the symlink approach is that you get a fully independent instance. Each symlinked service can be brought up/down without regard for the others, and can use its own config file, PID file, data directory, user account, etc. It's more flexible, but more of a hassle if (for example) everyone will want to start all of their disks at the same time and if none of them need special configuration.