- pkgconfig
- systemd-devel
yum install -y pkgconfig systemd-devel
- pkg-config
- libsystemd-daemon-dev
npm install sd-daemon
sudo apt-get install devscripts
sudo mk-build-deps -ir
debuild
sudo dpkg -i ../node-sd-daemon_*.deb
sudo systemctl start user@$(id -u).service
systemctl --user link "$PWD/test/test.service"
systemctl --user start test.service
curl localhost:8089
systemctl --user status test.service
curl localhost:8089/block
....
systemctl --user status test.service
systemctl --user stop test.service
systemctl --user disable test.service
sudo systemctl start user@$(id -u).service
systemctl --user link "$PWD/test/test-sa.socket"
systemctl --user start test-sa.socket
curl localhost:8088
systemctl --user status test-sa.service
....
systemctl --user stop test-sa.socket
systemctl --user disable test-sa.socket