A place where going to POC-ing dynamic variable at systemd stuffs
- Place unit file (rollback@rollback.service) to
/etc/systemd/system
- Move dyanmic variable file rollback@rollback-dynamic at
/opt/systemd-rollback/
- Enable it
$ sudo systemctl enable --now rollback@rollback-dynamic
- Restart service
$ sudo systemctl daemon-reload ## OR $ sudo systemctl restart rollback@rollback-dynamic.servic
- Enjoy 😀
while trigger the change, we can watch or follow the log changes with journalctl -u rollback@rollback-dynamic.service -f