You are not logged in.
Hi
I have my mythtv backend on one machine, and the frontend on another. I have set a daily wake period from 16 to 23, and the backend shuts down just fine at 23:15 (15min idle period). But the backend shuts down even if I have the frontend running!
I have created a script that checks if a user is logged ind called mythshutdown-wrapper.sh and set preSDWUCheckCommand in the database to this script. This also works fine, i.e. if I'm logged in after 23 the machine does not shutdown, but if I log out, it shuts down 15min later. The script looks like:
if last | head | grep -q ".*still logged in"; then
/usr/bin/logger "mythshutdown-wrapper: user logged in"
exit 1
else
/usr/bin/mythshutdown -c
RETCODE=${?}
/usr/bin/logger "mythshutdown-wrapper: mythshutdown said: ${RETCODE}"
exit ${RETCODE}
fi
The mythbackend.log does not really offer much info (starts when I start the frontend, and ends when the backend shuts donw):
2008-10-28 22:46:03.186 adding: mythfrontend-box as a client (events: 0)
2008-10-28 22:46:03.192 adding: mythfrontend-box as a client (events: 1)
2008-10-28 22:47:39.632 AutoExpire: CalcParams(): Max required Free Space: 2.0 GB w/freq: 15 min
2008-10-28 22:49:15.888 adding: mythbackend-box as a client (events: 0)
2008-10-28 22:49:15.890 adding: mythbackend-box as a client (events: 1)
2008-10-28 22:49:17.987 I'm idle now... shutdown will occur in 1800 seconds.
2008-10-28 22:53:40.438 adding: mythbackend-box as a client (events: 0)
2008-10-28 23:02:39.663 AutoExpire: CalcParams(): Max required Free Space: 2.0 GB w/freq: 15 min
2008-10-28 23:17:39.698 AutoExpire: CalcParams(): Max required Free Space: 2.0 GB w/freq: 15 min
2008-10-28 23:19:17.368 adding: mythbackend-box as a client (events: 0)
2008-10-28 23:19:17.371 adding: mythbackend-box as a client (events: 1)
Any ideas?
Kind regards, enrique
Offline
*bump*
I have created a work around, I call "mythshutdown -l" before mythwelcome and "mythshutdown -u" when I close mythwelcome.
Kind regards, enrique
Offline