1

I am trying to allow my system (OSMC on RPi3) to run for only 90 minutes in day and then shutdown (to restrict my kids). I used shutdown -P 90 on rc.local. But if system is shutdown before 90 minutes the command is reexecuted on next restart, even if next day. If restarted again second time then it's okay. Is there a better way to accomplish this? Regards

Kkhan
  • 11
  • Could you clarify this: If restarted again second time then it's okay. What exactly do you do and what happen? Maybe I'm wrong but the behaviour you describe it's the logical one, every time the RPi starts the command shutdown -P 90 is executed so the RPi will shutdown every 90 minutes after switched on, always. – migrc Mar 27 '18 at 06:30
  • Some recommendations for parental control: this and this (the last one is a little bit outdated but can be helpful as start point) – migrc Mar 27 '18 at 06:39
  • Thanks for reply. Issue is when pi is shutdown before scheduled time, manually. On next restart it initially shuts down due to previous cmd supposedly left in system. On restart' it starts normally without any issue. – Kkhan Mar 27 '18 at 15:01

0 Answers0