Auto Shutdown Function

We need an auto Shutdown function asap
Is the feature planned? If so, when will it be implemented?

You can easily do it yourself.

  1. Open a terminal
  2. Create a systemd service file

This service executes the shutdown command.

sudo nano /etc/systemd/system/shutdown-zimablade.service

Insert the following content:

[Unit]
Description=Shutdown ZimaBlade
After=network.target

[Service]
Type=oneshot
ExecStart=/sbin/shutdown -h now

Save with CTRL + X, Y, and ENTER.


2. Create a systemd timer file

This timer ensures that the service runs at a specific time every day.

sudo nano /etc/systemd/system/shutdown-zimablade.timer

Insert the following content (e.g., for a shutdown at 23:00, or enter your time):

[Unit]
Description=Shutdown ZimaBlade at 23:00 daily

[Timer]
OnCalendar=*-*-* 23:00:00
Persistent=true

[Install]
WantedBy=timers.target

Save with CTRL + X, Y, and ENTER.


3. Enable and start the timer

Run the following commands:

sudo systemctl daemon-reload
sudo systemctl enable --now shutdown-zimablade.timer

4. Check if the timer is active

Use this command to verify if the timer is running correctly:

systemctl list-timers --all | grep shutdown-zimablade

If you later want to disable the timer:

sudo systemctl disable --now shutdown-zimablade.timer
2 Likes

Thanks for the answer, is there a way to start the Server after that automatically at 7:00 am?
@hohu67

1 Like

I don’t know, because I use a smart-plug for that, that powers on in the morning and in the evening the zima powers of by that script.

I checked the BIOS, Zimablade supports Wake On Lan (WoL) and RTC Alarm Power On. So the easiest way would be to activate “Wake system from S5” as RTC is called on the Zima-Bios.

From the explanation:

"Enable or disable System wake on alarm event. Select FixedTime, system will wake on

the hr::min: :sec specified.

Select DynamicTime , System will wake on the current time + Increase minute(s)"

3 Likes