Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Daemoninsing a rake task

I have a rake task which runs mailman under the rails environment.

I'd like to ensure that rake task is always running via a daemon.

My rake task is rake incoming_mail

How would I go about daemonising that?

like image 544
Joseph Le Brech Avatar asked Mar 04 '12 14:03

Joseph Le Brech


1 Answers

In linux in order to run a process in background, you can add & to the end of command. So

rake incoming_mail &

should probably do the jobs for you.

like image 63
Shanison Avatar answered Sep 25 '22 15:09

Shanison