How to restart app periodically

as titlte suggest, can I setup a crontab so periodically restart the machine?
Solution:
the native cron scheduler can not trigger a restart, nor will it redeploy an already running deployment (it will skip it) that's where this comes in https://railway.app/template/fwH-l3 it can trigger a restart just the same way restarting the deployment via the 3 dot menu does, but on a set schedule...
Jump to solution
7 Replies
Percy
Percy9mo ago
Project ID: d7451ecd-791d-4cc5-8e89-188cbe6bda45
Charles_
Charles_OP9mo ago
d7451ecd-791d-4cc5-8e89-188cbe6bda45
Sr Izan
Sr Izan9mo ago
what might the command be? I’m interested
Charles_
Charles_OP9mo ago
^ that's my question too @trogdor Can you enlighten us?
Solution
Brody
Brody9mo ago
the native cron scheduler can not trigger a restart, nor will it redeploy an already running deployment (it will skip it) that's where this comes in https://railway.app/template/fwH-l3 it can trigger a restart just the same way restarting the deployment via the 3 dot menu does, but on a set schedule
Charles_
Charles_OP9mo ago
neat, thanks!
Want results from more Discord servers?
Add your server