Hi,
I wrote a script that will unlock my encrypted datasets, mount some SMB shares and start VMs afterwards.
I would like this script to be autorun by a systemd service but I'm not sure what to set for "AFTER" and "REQUIRE" so it will only be started after proxmox finished everything like starting networks, initializing zfs pools and so on.
Someone knows what values to use for "AFTER" and "REQUIRE"?
Is there a proxmox target I can use for "AFTER" to be sure proxmox has finished booting?
I thought this might look like this:
I wrote a script that will unlock my encrypted datasets, mount some SMB shares and start VMs afterwards.
I would like this script to be autorun by a systemd service but I'm not sure what to set for "AFTER" and "REQUIRE" so it will only be started after proxmox finished everything like starting networks, initializing zfs pools and so on.
Someone knows what values to use for "AFTER" and "REQUIRE"?
Is there a proxmox target I can use for "AFTER" to be sure proxmox has finished booting?
I thought this might look like this:
Code:
[Unit]
Description=PVE Start Script
Requires=network.target zfs.target local-fs.target remote-fs.target
After=pve-guests.service
[Service]
Type=oneshot
ExecStart=/bin/bash /root/scripts/start.sh
User=root
[Install]
WantedBy=multi-user.target
Last edited: