Just a random set of scripts I created to enable Parental Controls for Proxmox
- Clone this repository for the latest version of the script
cd /opt
git clone https://github.com/mdsketch/pve-parent
- Install the monitor service
cp monitor.service /etc/systemd/system/monitor.service
systemctl daemon-reload
systemctl enable --now monitor.service
- Install cron job
- Edit the crontab file
cp monitor.cron /etc/cron.d/monitor
- Disable the default power button action
sed -i 's/HandlePowerKey=poweroff/HandlePowerKey=ignore/g' /etc/systemd/logind.conf
sed -i 's/HandleSuspendKey=suspend/HandleSuspendKey=ignore/g' /etc/systemd/logind.conf
sed -i 's/HandleHibernateKey=hibernate/HandleHibernateKey=ignore/g' /etc/systemd/logind.conf
- Install ACPI event handler
apt install acpid
- Edit the acpi handler file and add custom action
cp powerbtn-acpi-support /etc/acpi/events/powerbtn-acpi-support
cp pwbtn.sh /etc/acpi/pwbtn.sh