View Single Post
Posts: 10 | Thanked: 0 times | Joined on Feb 2010
#1
all i want to do is auto start 2 applications possibly more when my n900 reboots. i have scoured the forums and have been to set up an upstart event that runs as user and calls a script in my home folder after the n900 reboots. for simplicty i got the script to output who the current user was and echo the date to two separate files.

however i am trying to get both gpodder and mauku to load up using the same method but failing.

my upstart event script in /etc/event.d is as follows

etc/event.d $ cat appstart
console none
#start on startup
start on started hildon-desktop
stop on starting shutdown

script
#sleep 60
#exec su user -c "/home/user/test.sh"
end script
my test.sh script is

cd /home/user
sleep 60

>/home/user/mauku.log
/usr/bin/mauku >/home/user/mauku.log 2>&1

>/home/user/gpodder.log
/usr/bin/python2.5 /usr/bin/gpodder --fremantle >/home/user/gpodder.log 2>&1

date > /home/user/q.txt

the date output works fine but both mauku and gpodder fail to load.

i have tried using no hup, putting an & at the end of each line, removing the output to file, starting with sh even putting the mauku and gpodder in the upstart script with no luck.

after 4 hours i am about to give up as i cannot believe its this difficult.

i would appreciate any assistance on this.

thanks
craig