Active Topics

 


Reply
Thread Tools
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
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#2
i tried to run my script on startup too and had several problems with it.

calling the script from the event.d-script didn't work at all.

so i simply wrote the complete code directly in the event.d-script.

http://talk.maemo.org/showpost.php?p...&postcount=123
 
Posts: 10 | Thanked: 0 times | Joined on Feb 2010
#3
Originally Posted by b666m View Post
i tried to run my script on startup too and had several problems with it.

calling the script from the event.d-script didn't work at all.

so i simply wrote the complete code directly in the event.d-script.

http://talk.maemo.org/showpost.php?p...&postcount=123
hi thanks for your reply.

i have tried direct coding of the script line and it fails. the issue seems to be starting of gui based apps such as mauku or gpodder when the desktop has started. any non gui based programs such as redirecting date to a file as a test works.

thanks
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#4
ah ok... someone mentioned to start those apps by "start on started xsession".

-> http://talk.maemo.org/showpost.php?p...7&postcount=11

Last edited by b666m; 2010-02-28 at 12:03.
 
Posts: 10 | Thanked: 0 times | Joined on Feb 2010
#5
thanks i'll give it a try and let you know.
 
Posts: 10 | Thanked: 0 times | Joined on Feb 2010
#6
hi i've tried
start on x11
start on started xsessiom
start on started x11

and none have worked. the script doesn't run.
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#7
mhm.. if you're running your script out of xterminal... does it work correctly?
 
Posts: 10 | Thanked: 0 times | Joined on Feb 2010
#8
yeah the script runs fine from xterminal both maku, gpodder and then the date output. the situation is similar to the vnc link you sent me first about init.d that is, script runs fine but fails to run at start.

i was reading another forum where someone on the n810 created a dummy applet that ran and then executed all of the apps when this was executed at boot. its another way around this issue but i am trying to avoid going down this avenue.

failing that i have fcron installed but cannot remember if i can get the cron to execute a program at boot once when the n900 starts.

my aim from this is to put the n900 on a daily reboot then execute the apps i want as soon as it has started.

i am doing this as have found its peformance degrades over time and that a reboot just refreshes. i know this is not resolving any potential memory leak issues or whatever is causing it but it should be simple to do. fcron will do the reboot in the night then this script will restart the apps.

thanks
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#9
sounds like a good idea (:

mhm... maybe you could have a look in the scripts stored in the event.d directory to get those "start on..." lines... maybe there's the right line for you too

(although i was sure that "start on started xsession" would do what it was supposed to do o.O)
 

The Following User Says Thank You to b666m For This Useful Post:
Posts: 10 | Thanked: 0 times | Joined on Feb 2010
#10
i have had a look in the scripts with no luck which is why i was lookihg on this forum for help.

i will keep looking and thanks for your help.
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:43.