Using Lil Pids
Sometimes, you need a really simple process manager. Like, very simple. lil pids is just that. It’s dead simple.
I have actually used this on a few projects for managing nodeJS services with no problems. Simple is solid.
- install that shit
npm install -g lil-pids - create two files,
./services&./pids - install this add-to-systemd package
npm install -g add-to-systemd - run this weird ass command
sudo $(which add-to-systemd) -u $(whoami) -e PATH=$PATH lil-pids $(which lil-pids) ./services ./pids - make sure it’s all running and shit when the server restarts, but also for some reason need this to make it properly persist as background process
sudo systemctl start lil-pids - Lastly, run lil-pids
lil-pids ./services ./pids - That’s it. You can run
cat .pidsto see what is running.
Last modified:
Last modified: