LinHES Forums
http://forums.linhes.org/

Restarting IREXEC after suspend
http://forums.linhes.org/viewtopic.php?f=21&t=22282
Page 1 of 1

Author:  Big boy stan [ Fri Oct 14, 2011 10:24 am ]
Post subject:  Restarting IREXEC after suspend

I finally spent some time and got my FE to suspend and come back to life with the push of a button on my remote. The suspend part is working very well and I set up my remote using IREXEC to run my suspend script. One of the issues I had was that I had to do a killall irexec in the script to get it to behave properly. After a restart I need to restart it but I cant get it to do it in the script.

After a successful suspend, if I type
Code:
/usr/bin/irexec -d

in a terminal all is well. I can push the power button on the remote and it runs the script. So I added it to the last line of my script (after suspending) but it does not restart it.

I also tried adding the following to my script
Code:
su mythtv -c "/usr/bin/irexec -d"
but still nothing.

Any idea why I can restart irexec -d in a terminal but not from my script?

Author:  Big boy stan [ Sat Oct 15, 2011 9:06 am ]
Post subject: 

Looks like it was just a timing issue. I added a sleep 5 before attempting the irexec and all is well.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/