From 7c5977a4b2ba3fb000c61000a599a0d6fe5ee394 Mon Sep 17 00:00:00 2001 From: Guillaume Hayot Date: Fri, 8 Aug 2014 08:10:09 -0700 Subject: [PATCH] Adding a Supervisor configuration file to the automatic startup scripts --- Supervisor-control-file.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Supervisor-control-file.md diff --git a/Supervisor-control-file.md b/Supervisor-control-file.md new file mode 100644 index 0000000..a700295 --- /dev/null +++ b/Supervisor-control-file.md @@ -0,0 +1,14 @@ +The following configuration file gives the ability to control `haste-server` with [Supervisor](http://supervisord.org/). It's independent of the initsystem, and it's quite easying the installation with Docker. The synthax is [similar to Systemd's](https://github.com/seejohnrun/haste-server/wiki/Systemd-Unit-for-haste-server). In `/etc/supervisor/conf.d/`, and a `haste-server.conf` file with: + +``` +[program:haste-server] +command = /usr/local/bin/node /var/www/haste-server/server.js +directory = /var/www/haste-server +user = www-data +autostart = true +autorestart = true +stdout_logfile = /var/log/supervisor/haste.log +stderr_logfile = /var/log/supervisor/haste_err.log +``` + +Then, reload Supervisor with `supervisorctl update`. \ No newline at end of file