Per-user process supervision trees on macOS, managed by daemontools from pkgsrc.
Because it works on many other platforms: rc.d-boot from pkgsrc plus daemontools-run from pkgsrc.
On macOS with FileVault 2, services failed to start with e.g. opening configfile /Users/schmonz/Sites/schmonz.local/conf/lighttpd failed: Operation not permitted
.
- The root
svscan
is unable to start the usersvscan
until the user has logged in. - The user
svscan
probably was itself started with insufficient filesystem privileges.
On a system without FileVault enabled, things work as I wanted.
- Stop trying to use
daemontools-run
on macOS when FileVault is enabled. - Configure
launchd
to runsvscan
when I log in. - Make sure
/opt/pkg/bin/mksh
(the shell that these scripts will run under) has Full Disk Access.
- If my user isn't logged in, its services don't run.
- On macOS with FileVault, there might not be anything I can do to make
daemontools-run
work as I'd want.