Shutdown everyday at 2:00

unecc

New Member
Aug 14, 2023
17
0
1
Hi to all,
i m looking for a sulution for shutdown my pc with proxmox everyday at 2:00 when all vm and containers are off.

I've to use chrontab -e?
Can someone help me please?
 
Hi to all,
i m looking for a sulution for shutdown my pc with proxmox everyday at 2:00 when all vm and containers are off.

I've to use chrontab -e?
Can someone help me please?
Hi,
you can simply invoke a systemd poweroff at 2 am via cron, all running containers and virtual machines will be powered off by the corresponding systemd service.
A command could look like
Code:
00 02 * * * /usr/sbin/poweroff
You could also use rtcwake to do the poweroff and specify a date/time for powering the machine on again in an automated manner, see man rtcwake for details about that.
 
  • Like
Reactions: unecc