Subj : BBS platforms
To   : paulie420
From : Oli
Date : Wed Sep 21 2022 08:01 am

paulie420 wrote (2022-09-20):

es>> Hey Paulie, I have mis completely managed by systemd which I find
es>> to be pretty useful for taking down to take backups, doing system
es>> reboots, etc., and is a "graceful" way of taking the server down to
es>> prevent corruption issues.

es>> Let me know if you want to go over how I have this configured!
es>> Actually, maybe I'll just package up and release my "mystic on
es>> ubuntu" guide :P

p> Nice - you should release it. I once t00k a look at... theres another
p> REALLY nicely written Mystic systemd service written by vswitchzero @
p> https://vswitchzero.com/mystic-systemd/ , but it runs as root (there is
p> an option to run as non-root built in...)

For not running as root you can use something like:

sudo setcap cap_net_bind_service=+ep /pathto/mis

and then change User=root in mis.service to the mystic user. cap_net_bind_service=+ep allows the executable to bind to ports below 1024.



---
* Origin: War is Peace. Freedom is Slavery. Ignorance is Strength. (21:3/102)