Monday, April 12, 2010

Nokia N900 guide: startup scripts

I haven't quite figured out how to execute certain scripts on startup until today. There is a rsync script under my /etc/init.d directory but I could not get it to start automatically. I tried update-rc.d but it doesn't do anything other than creating an S20rsync file under /etc/rc2.d.

It turns out N900 uses upstart instead. So all I have to do is to create a file called rsyncd under /etc/event.d with the following content:



start on stopped rcS

console output

respawn

script
exec /etc/init.d/rsync start
end script

No comments: