This is the flume-ng-agent init.d script included with CDH4.  Drop it in /etc/init.d/flume-ng-agent, make it executable (chmod 755 /etc/init.d/flume-ng-agent), and then you can start/stop flume to your heart's content.

On Jan 22, 2013, at 3:59 AM, Juhani Connolly <> wrote:

We use "nohup <command> &" and record the process id after.

I'm pretty sure the cdh distribution of flume does the same, so you might want to have a look at that if you want a ready made init.d file and whatnot

On 01/22/2013 05:48 PM, GuoWei wrote:
Thanks a lot

I try to use nohup at the beginning of the flume-mg. It seems also works.

Do you try that ? 


On 2013-1-22, at 下午4:34, Nitin Pawar <> wrote:

also try ending the command with & 

On Tue, Jan 22, 2013 at 2:02 PM, Connor Woodson <> wrote:
Easiest way I have found is to run it in a screen instance:

$ screen -R <unique name>
(you're now in a screen instance)
$ <run flume>
(type Ctrl-a then d to leave screen; to go back to that instance, retype the command from above)

- Connor

On Mon, Jan 21, 2013 at 10:38 PM, GuoWei <> wrote:
Dear all,

Can you tell me how to start flume-mg agent in background mode ?

Thanks a lot.

Best Regards / 商祺
郭伟 Guo Wei
Western Bridge Tech Ltd.,  Nanjing

No. 511, Building 1, No. 8, Hua Yuan Road

Xuanwu District, Nanjing, PR China


Tel: +86 25 8528 4900 (Operator) 
Mobile: +86 138 1589 8257
Fax: +86 25 8528 4980

WesternBridge Tech: Professional software service provider. Professional is MANNER as well CAPABILITY.

Nitin Pawar