#!/bin/bash
CURHOUR=$(date +%H);
CURMINUTE=$(date +%M);
if [ $CURHOUR -eq 23 ];
then
LEFT=$((60-$CURMINUTE));
notify-send "You have $LEFT minutes left until suspension";
fi;
if [ $CURHOUR -lt 8 ];
then
if [ $CURHOUR -gt 0 ];
then
notify-send "Suspension";
# systemctl suspend;
fi;
fi;
WARNING: [pool www] server reached max_children setting (10), consider raising it
pm.max_children = Total RAM dedicated to the web server / Max child process size