0

How to run Mojito as a backgroundservcie

Hi,

When I open terminal and start Mojito: mojito start it will run, but only until the terminal is closed.
In what way can I run it as a deamon?

Regards,
Marco Asbreuk

by
2 Replies
  • You can use 'nohup' to run it as a daemon. 

    From your application directory, run the following:

    nohup mojito start > mojito.log &

    You can open a terminal later to kill the process: 

    $ kill $(ps aux | grep mojito | grep -v grep | awk '{print $2}')

    There are a number of Node.js daemons you could try as well. This page lists some, but I haven't checked to see if any of them would work: http://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever

    Try searching in the npm registry, too:  https://npmjs.org/browse/keyword/daemon

    0
  • Hi Me,

    Much thanks for helping me further.
    If you find some time, could you also have a look at some other of my topics?

    http://developer.yahoo.com/forum/Yahoo-Mojito/How-to-specifying-doctype-and-bodyclass/1348003691654-443a104e-9e18-4a33-8501-80e61fa8fad7
    http://developer.yahoo.com/forum/Yahoo-Mojito/Broadcast-even-not-within-binder/1348155879086-e8150809-3ea9-4080-846d-87fe88639531
    http://developer.yahoo.com/forum/Yahoo-Mojito/Best-way-to-combine-YUI3-widgets/1348167359384-04841955-bbee-4ad0-bf70-fb11ee313846

    I would be very thankful.


    Regards,
    Marco.


    QUOTE(Me @ 27 Sep 2012 3:36 PM)
    You can use 'nohup' to run it as a daemon. 

    From your application directory, run the following:

    nohup mojito start > mojito.log &

    You can open a terminal later to kill the process: 

    $ kill $(ps aux | grep mojito | grep -v grep | awk '{print $2}')

    There are a number of Node.js daemons you could try as well. This page lists some, but I haven't checked to see if any of them would work: http://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever

    Try searching in the npm registry, too:  https://npmjs.org/browse/keyword/daemon

    0

Recent Posts

in Yahoo! Mojito