![]() |
2010-02-14
, 12:52
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#2
|
Hello.
What is the Maemo way of starting python applications at boot?
Is there some convention that people should follow?
I am working on small python application that I would like to start automatically when device boots, but I haven't found any docs on what is the preferred way to do it in Maemo.
I could of course add script to /etc/init.d and then put it to runlevel in /etc/rc..., but is that the way I am supposed to use?
And if it is what runlevel I should use, /etc/rc3.d?
The Following User Says Thank You to krk969 For This Useful Post: | ||
![]() |
2010-02-14
, 14:00
|
Posts: 1,101 |
Thanked: 1,185 times |
Joined on Aug 2008
@ Spain
|
#3
|
![]() |
2010-02-14
, 14:16
|
Posts: 4 |
Thanked: 1 time |
Joined on Feb 2010
|
#4
|
The Following User Says Thank You to jargon For This Useful Post: | ||
![]() |
2010-02-14
, 21:06
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#5
|
I got the auto start working with following script in /etc/event.d
--
console logged
start on started hildon-desktop
stop on stopped dbus
exec /usr/bin/python /home/user/script.py
---
I also used chroot +r on the startup script as all built in scripts seemed to be world readable, not sure if that is needed.
Now the what is proper place for python applications in N900?
/usr/bin?
The Following User Says Thank You to krk969 For This Useful Post: | ||
![]() |
2010-05-04
, 09:57
|
Posts: 2 |
Thanked: 0 times |
Joined on May 2010
|
#6
|
![]() |
2010-05-04
, 14:29
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#7
|
![]() |
2010-05-05
, 01:29
|
Posts: 2 |
Thanked: 0 times |
Joined on May 2010
|
#8
|
![]() |
2010-05-12
, 11:20
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#9
|
exec run-standalone.sh /usr/bin/python /home/user/hello.pyend script
What is the Maemo way of starting python applications at boot?
Is there some convention that people should follow?
I am working on small python application that I would like to start automatically when device boots, but I haven't found any docs on what is the preferred way to do it in Maemo.
I could of course add script to /etc/init.d and then put it to runlevel in /etc/rc..., but is that the way I am supposed to use?
And if it is what runlevel I should use, /etc/rc3.d?