Dear reader,

according to the rc.d man:

--
daemon_class is a special read-only variable.  It is set to "daemon"
unless there is a login class configured in login.conf(5) with the same
name as the rc.d script itself, in which case it will be set to that
login class.  This allows setting many initial process properties, for
example environment variables, scheduling priority, and process limits
such as maximum memory use and number of files.
--

If the demon requires a specific class, like lets say `unbound`,
but it s launched through a symlink `unbound_jail -> unbound`,
the class will not be used and login.conf
*must* declare `unbound_jail` ?

In other words,

Is there a way to, without rewriting rc_exec, use a specific class
for all 'instances' created through a symlink of the rc.d/script directory.
So all other unbound daemon actually do `su -c unbound` and not
`su -c unbound_secondary`

Best,

Reply via email to