Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sunscreem's avatar

How to schedule a nightly reboot? (Forge + DigitalOcean)

I'm using a DO droplet as my development environment. It's fantastic.

I'd like to do a nightly reboot however as there's no good reason not to.

Having a few issues getting that working via forge. Anyone know the correct way to schedule this?

0 likes
6 replies
Nakov's avatar
Nakov
Best Answer
Level 73

Can you share what is the good reason then to do a reboot? :)

You will have to SSH to your droplet and use the Sudo user and not the forge one in order to do so:

https://askubuntu.com/a/237296

1 like
martinbean's avatar

I'd like to do a nightly reboot however as there's no good reason not to.

@sunscreem What is the good reason to do so…?

Snapey's avatar

there's no good reason not to.

What about anyone that is browsing your site, or is logged in?

sunscreem's avatar

Because this server is just used as my dev environment its nice to have no memory leak issues build up. I've noticed if I leave it running for 20+ days about 40% of the memory starts to sit as used.

sunscreem's avatar

Its just my dev environment so its only ever me using it :)

sunscreem's avatar

Ach - that's too much effort lol. I was hoping I could just schedule a forge task to do it. Thank you for the link though.

Please or to participate in this conversation.