Page 1 of 1
How to start a daemon at boot in openelec ?
Posted: Wed Nov 27, 2013 12:12 pm
by Nikki81
I have built gamaral's rpi power switch
http://guillermoamaral.com/read/rpi-psu-r3/ but am having trouble getting the daemon to start at boot. will i have to put the script in place and then rebuild it ?
Re: How to start a daemon at boot in openelec ?
Posted: Wed Nov 27, 2013 8:08 pm
by hunternet93
Check out the source code of the shell script: [url]
https://github.com/gamaral/rpi-pwrbtn/b ... _client.sh[/code]
Relevant excerpt from the source:
Code: Select all
## INSTALL ####################################################################
#
# Simply run as this script as a daemon on system start.
#
# Here's an example of how you could do just that on target.
#
# su # become root
# cp rpi-psu_client.sh /usr/local/bin
# chmod 700 /usr/local/bin/rpi-psu_client.sh
# echo "null::once:/root/rpi-psu_client.sh" >> /etc/inittab
#
Re: How to start a daemon at boot in openelec ?
Posted: Wed Nov 27, 2013 9:11 pm
by Nikki81
that was the first thing i tried it is not letting me get root
Re: How to start a daemon at boot in openelec ?
Posted: Fri Nov 29, 2013 3:59 pm
by Nikki81
Ive been trying things for the last two days and Ive still got the problem that every time i try and edit things to get the script to run i get the error that it is a read only file system
Re: How to start a daemon at boot in openelec ?
Posted: Fri Nov 29, 2013 4:01 pm
by bubbl
Re: How to start a daemon at boot in openelec ?
Posted: Fri Nov 29, 2013 4:30 pm
by RaTTuS
you need to remount it as read - write
somethign like
mount /flash -o remount,rw
then you can edit the files