Open blroot opened 2 years ago
I don't know about the rest of the platforms, but I've tried using systemd path: https://www.freedesktop.org/software/systemd/man/systemd.path.html
I've defined
cloudflared-restart.path
[Path]
PathChanged=/usr/bin/cloudflared
[Install]
WantedBy=multi-user.target
cloudflared-restart.service
[Service]
Type=OneShot
ExecStart=/usr/bin/systemctl restart cloudflared
Then systemctl enable cloudflared-restart.path
. Now every changes in /usr/bin/cloudflared
triggers a restart. Do you see this as a potential solution?
If cloudflared is updated trough package manager, and it is installed as a systemd service, there is no mechanism to restart the service after the update.
To Reproduce Steps to reproduce the behavior:
cloudflared service install
,systemctl start cloudflared
Expected behavior There should be a mechanism to restart the service whenever an update is performed.
Environment and versions