Page Details:
Applying the Unix Process Model to Web Apps
http://adam.heroku.com/past/2011/5/9/applying_the_unix_process_model_to_web_apps/Let’s set up memcached to run as a managed process on Ubuntu. Write an Upstart config: /etc/init/memcached.conf description "Memcached" exec /usr/bin/memcached >> /var/log/memcached.log start on runlevel [345] respawn We can now tell Upstart to start our process for the first time: $ start memcached memcached start/running, process 1212 The memcached process is now running in the background, managed by the process manager, with its output stream going to /var/log/memcached.log. Now that we’ve established a baseline for the process model, we can put its principles to work in more novel way: running a web app.
Tags: unix, linux, process, ruby, architecture, monitoring, deployment, development, osx, sysadmin Saved by: admin