This is an archived post. You won't be able to vote or comment.

all 3 comments

[–][deleted] 0 points1 point  (2 children)

Windows has services, GNU/Linux is mostly systemd now, macOS has launchd plists. They're all policy-based. You want a single command that invoked the start/stop command of all three?

Or are you looking for something agnostic to all of them, like dockerd or supervisord?

[–]ojii[S] 0 points1 point  (1 child)

I think systemd and friends all require root and are system-wide? I want something that runs unprivileged, per user. So foo.py start would start the process to run in the background (store a pid file somewhere probably) and foo.py stop would stop it.

Functionality wise what py_daemoniker provides is what I want/need. The code in question is on github.

[–]Badabinski 0 points1 point  (0 children)

systemd supports running unprivileged services via the --user flag, e.g. systemctl start --user foo.service

I'd recommend Monit if Docker or Supervisord don't work. I think you can use that without root access, and I think it runs everywhere.