Reply
Thread Tools
Posts: 388 | Thanked: 842 times | Joined on Sep 2009 @ Finland
#11
You probably need to use "start on started xsession" since vnc requires a running xserver?
 

The Following 6 Users Say Thank You to hqh For This Useful Post:
cddiede's Avatar
Posts: 1,034 | Thanked: 784 times | Joined on Dec 2007 @ Annapolis, MD
#12
Success!!!

The "start on started xsession" did the trick!

Thanks everyone!
 
Posts: 155 | Thanked: 61 times | Joined on Nov 2009
#13
Originally Posted by cddiede View Post
Run level 2, eh?

I hadn't heard that one, but what the hell.

So, I copied the start sym-link to /etc/rc2.d and rebooted.

Still no vnc processes running at boot.
Maemo 5 uses upstart I think (I dont have an N900... yet) so make sure the rc script has the right service comments and then run update-rc.d I think
 

The Following User Says Thank You to phedders For This Useful Post:
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#14
Hello,

I have a problem with event.d.
I have:

Code:
Nokia-N900-42-11:/etc/event.d# cat proximityd
start on started dbus
stop on stopped dbus
respawn

script
        exec /usr/sbin/proximityd
        sleep 5
end script
and

Code:
-rw-r--r--    1 root     root          114 Dec 17 21:42 proximityd
Running
Code:
/usr/sbin/proximityd
from CL works fine. However, app is not started on boot. Any ideas what to do/to check?
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#15
hey hopbeat!

did you manage to get the script working on started dbus (or startup or anywhen else)?!

i have nearly the same problem.

it's working from terminal calling with "sh script" but doesn't do anything when called by event.d on startup.
(if it's actually called by event.d ... ://)
 
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#16
@b666m, yes, we are using this in proximityd and shortcutd:

Code:
start on XSESSIONS_STARTING
stop on stopped hal
#stop on stopped dbus
respawn
respawn limit 15 3

script

        ## get dbus session bus address
        sleep 2
        PATH="/bin/:/usr/bin"
        pids=`pgrep dbus-daemon`
        for pid in $pids; do
        FILE=`cat /proc/$pid/environ | perl -pe 's/\x0/\n/g'|grep SESSION_BUS_ADDRESS_FILE \
                |sed -e 's/SESSION_BUS_ADDRESS_FILE=//g'`
        done
        eval `cat $FILE`

        export DISPLAY=:0.0
        exec su user -c "exec /usr/sbin/shortcutd"
        sleep 5

end script
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 
Posts: 2 | Thanked: 3 times | Joined on Mar 2010
#17
Any idea if it would be possible to run a script every time network connection is estabilished? That action doesn’t emit any event.
 
Posts: 2 | Thanked: 3 times | Joined on Mar 2010
#18
Originally Posted by laiti View Post
Any idea if it would be possible to run a script every time network connection is estabilished? That action doesn’t emit any event.
Figured it out myself…just put the script to /etc/network/if-up.d. Works!
 

The Following 3 Users Say Thank You to laiti For This Useful Post:
Posts: 66 | Thanked: 30 times | Joined on Feb 2010
#19
Hi guys, do you know what start condition I need to use to launch a script as late as possible during a boot? I would prefer to have the acutal script in MyDocs, so it needs to be mounted at the execution time..
Would start on started xsession do? Or is there something better fitting? Maybe start on started hildon-desktop?
 
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#20
Originally Posted by fhofer View Post
Hi guys, do you know what start condition I need to use to launch a script as late as possible during a boot? I would prefer to have the acutal script in MyDocs, so it needs to be mounted at the execution time..
Would start on started xsession do? Or is there something better fitting? Maybe start on started hildon-desktop?
i believe the latter (hildon-desktop) is the latest possible event to hook on.
but you won't have any luck placing your scripts on MyDocs, unless you reformat it to ext2/ext3, because VFAT doesn't support the executable flag. just so you know
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 

The Following User Says Thank You to SubCore For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 00:22.