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
Percy4mo ago
Project ID: d7451ecd-791d-4cc5-8e89-188cbe6bda45
Charles_
Charles_4mo ago
d7451ecd-791d-4cc5-8e89-188cbe6bda45
Sr Izan
Sr Izan4mo ago
what might the command be? I’m interested
Charles_
Charles_4mo ago
^ that's my question too @trogdor Can you enlighten us?
Solution
Brody
Brody4mo 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_4mo ago
neat, thanks!