How do I get a notification when my server restarts?
Add a tiny systemd service that runs on boot and POSTs to your Lert link. Every time the box comes back up, your iPhone buzzes in about a second. No account, no API keys, no SDK. Setup takes under 30 seconds.
An unexpected reboot usually means a crash, a kernel update, or your host moving things around — and you want to know the second it happens, not hours later. The reliable way is to run one command on every boot that pings your phone. Lert is what makes that command trivial: your unique link is the endpoint, so there's no account, no key, and nothing to install beyond curl.
Set it up in under 30 seconds
- Download the app. Open it once — there's no account to create.
- Copy your link. A private link like
https://lert.dev/p/your-idis on screen; one tap copies it. - Add a boot service. A small systemd unit runs after the network is up and curls your Lert link.
From then on, every restart lands as a buzz on your phone — even locked in your pocket.
The code
[Unit] Description=Buzz my phone on boot After=network-online.target Wants=network-online.target [Service] Type=oneshot ExecStart=/usr/bin/curl -X POST "https://lert.dev/p/your-id" \ -H "Content-Type: application/json" \ -d '{"title":"Server restarted","body":"'"$(hostname)"' is back online"}' [Install] WantedBy=multi-user.target
Enable it once with sudo systemctl enable lert-boot.service and it fires on every boot. No auth token, no SDK — just curl. On a system without systemd you can put the same curl in /etc/rc.local or a @reboot cron entry.
Using $(hostname) in the body means the buzz tells you which machine rebooted — handy the moment you're running more than one server on the same Lert channel.
Related things people wire up
- When a website goes down
- When disk space runs low
- A notification from a cron job
- Server monitoring notifications
- Full cron push guide
It's free for one channel and 50 notifications a day; Lert Pro is $2.99/month for unlimited. See the docs for the full API.
Send your first one in 30 seconds.
Download Lert, copy your link, POST to it. Your iPhone buzzes.