GithubHelp home page GithubHelp logo

schmonz / macos-user-svscan Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 5 KB

Per-user process supervision trees on macOS

Makefile 100.00%
daemontools filevault launchd macos macos-settings macos-setup pkgsrc process-supervision supervision s6

macos-user-svscan's Introduction

macos-user-svscan

What I wanted

Per-user process supervision trees on macOS, managed by daemontools from pkgsrc.

What I tried

Because it works on many other platforms: rc.d-boot from pkgsrc plus daemontools-run from pkgsrc.

What happened

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.

What I discovered

  1. The root svscan is unable to start the user svscan until the user has logged in.
  2. The user svscan probably was itself started with insufficient filesystem privileges.

On a system without FileVault enabled, things work as I wanted.

What I did instead

  1. Stop trying to use daemontools-run on macOS when FileVault is enabled.
  2. Configure launchd to run svscan when I log in.
  3. Make sure /opt/pkg/bin/mksh (the shell that these scripts will run under) has Full Disk Access.

What's suboptimal about this

  1. If my user isn't logged in, its services don't run.
  2. On macOS with FileVault, there might not be anything I can do to make daemontools-run work as I'd want.

macos-user-svscan's People

Contributors

schmonz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.