Skip to main content

I’m working on automating a workflow where I need to restart a specific Linux daemon on a server as part of a Zap. I haven’t seen any direct options for this within Zapier’s built-in actions, so I’m wondering if anyone has found a way to execute Linux commands, specifically for restarting a daemon (e.g., sudo systemctl restart my_daemon.service), from within a Zap.

 

Has anyone successfully done this, perhaps using webhooks, SSH, or another Zapier app? Also, if there are security considerations or tips for handling permissions, I’d love to hear those as well. Thanks!

Hi @MrBells, welcome to the Community! 👋

Perhaps there’s an app in our Developer Tools apps category that might be allow you to do that? 🤔

Alternatively, as you say it might be possible to use a Webhooks action in a Zap to do it. I’ve not done it myself but in theory you could add a webhook listener to the server then when a Zap sends a webhook through to the server that then runs the necessary linux commands. That said the Webhooks by Zapier app only supports basic authentication (see: Send webhooks in Zaps). If you’d need more advanced authentication methods then you might need to look into building an app integration on our Developer Platform to do this: https://zapier.com/developer-platform

Hope that helps. If you have any success in using a webhook for this or find another solution we’d love to hear about it, so please keep us updated on how you get on with this!