Hello there,
I have recently installed Proxmox on my homeserver and on it I installed nextcloud in a lxc. Due to electricity cost
I want to shut my server down when the server is idling and when I want to start it I usually connect to a website hosted
on my rpi zero where I click a button, which will execute a wol bash script.
Now I would like to have an autostart script running on my proxmox server which checks if my cloud is running,
something like
which then sends a post script to my pi.
If this post request is received by my pi it redirects me to my cloud.
So my question now is, how can I autostart a script which sends get/post requests to my pi?
I have recently installed Proxmox on my homeserver and on it I installed nextcloud in a lxc. Due to electricity cost
I want to shut my server down when the server is idling and when I want to start it I usually connect to a website hosted
on my rpi zero where I click a button, which will execute a wol bash script.
Now I would like to have an autostart script running on my proxmox server which checks if my cloud is running,
something like
Bash:
#!/bin/bash
running=$(grep running pct list)
if $running = "running"
then
#execute post script
If this post request is received by my pi it redirects me to my cloud.
So my question now is, how can I autostart a script which sends get/post requests to my pi?