Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 service uninstall command should NOT automatically restart the running service too 😢 #1327

Open
k4my4b opened this issue Sep 14, 2024 · 0 comments
Labels
Priority: Normal Minor issue impacting one or more users Type: Bug Something isn't working

Comments

@k4my4b
Copy link

k4my4b commented Sep 14, 2024

Describe the bug
Long story short I had to issue the service uninstall command, cloudflared service uninstall, on a remote server to clear up the service files and regenerate new ones when I, inadvertently, had my ssh session terminated, as well, by this operation. And the warning message does NOT warn of the potentially dire side effects.

error generating service template error="cloudflared service is already installed at /etc/systemd/system/cloudflared.service; if you are running a cloudflared tunnel, you can point it to multiple origins, avoiding the need to run more than one cloudflared service in the same machine; otherwise if you are really sure, you can do `cloudflared service uninstall` to clean up the existing service and then try again this command"

To Reproduce
issue cloudflared service uninstall on a remote server that is running the cloudflared service.

If it's an issue with Cloudflare Tunnel:
4. Tunnel ID : N/A
5. cloudflared config: N/A

Expected behavior
Either be warned OR better do not automatically shutdown/restart the running service, at least not without explicit confirmation.

Environment and versions

  • OS: Archlinux
  • Architecture: x86
  • Version: 2024.8.3

Logs and errors
N/A

Additional context

@k4my4b k4my4b added Priority: Normal Minor issue impacting one or more users Type: Bug Something isn't working labels Sep 14, 2024
@k4my4b k4my4b changed the title 🐛 service unistall command should NOT automatically restart the running service too 😢 🐛 service uninstall command should NOT automatically restart the running service too 😢 Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Normal Minor issue impacting one or more users Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant