WebFaction
Community site: login faq

Hello

If the server ever gets restarted, how can I ensure a custom app gets kicked-off so it's always running as a background process?

Is there a way to monitor and be alerted if a particular process isn't running?

Thanks

asked 15 Nov '13, 06:59

turgs
7410
accept rate: 0%


You can set up a cron job with @reboot as the schedule component to ensure that your process starts after a reboot.

For monitoring, you can run a simple cron job that checks your process listing and fires off an email if something isn't as it should be, or you could use something more advanced, like Supervisor, to do it.

permanent link

answered 15 Nov '13, 12:27

seanf
12.2k42136
accept rate: 37%

edited 15 Nov '13, 12:28

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×24
×10
×4
×3

question asked: 15 Nov '13, 06:59

question was seen: 1,815 times

last updated: 15 Nov '13, 12:28

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM