简体   繁体   中英

10gen mms monitoring service to start after reboot

I have setup MMS agent for my mongoD instances on AWS. MMS Agent is on a separate t1.micro instance. It all works fine however, every time I reboot the server I have to run sudo nohup python agent.py > agent.log 2>&1 & to start the service!!

How can I add this to service so with every reboot MMS Agent starts too!

在监视系统中需要一个cronJob,当系统重新启动时,此操作将自动在bash行中执行

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM