Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wankdanker/haproxy-upstart-wrapper
A wrapper for haproxy to be used with Upstart
https://github.com/wankdanker/haproxy-upstart-wrapper
Last synced: 14 days ago
JSON representation
A wrapper for haproxy to be used with Upstart
- Host: GitHub
- URL: https://github.com/wankdanker/haproxy-upstart-wrapper
- Owner: wankdanker
- Created: 2014-09-08T21:29:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-08T22:39:24.000Z (over 10 years ago)
- Last Synced: 2024-12-06T07:16:49.131Z (about 1 month ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
haproxy-upstart-wrapper
-----------------------A wrapper for haproxy that works with Upstart so that reload signals are processed properly.
Just in time for Debian to switch to systemd.
install
-------```bash
$ npm install -g haproxy-upstart-wrapper
```motivaion
---------The init script that comes with the haproxy package in Debian/Ubuntu is not an
Upstart script. I have found the existing init script to be unreliable on
reboots. In trying to convert the existing init script to an upstart job I
discovered the unique way that haproxy seamlessly reloads config files.Upstart can only send a signal to a process to tell it to reload its config
files, while haproxy starts a whole new process after telling the currently
running process to stop listening on specified ports. As a result of this
incompatability, here is this wrapper script which starts haproxy, listens
for the reload signal and then executes the process restarting procedure.usage
-----Install the upstart job with:
```bash
$ haproxy-upstart-wrapper --install
```Uninstall the upstart job with:
```bash
$ haproxy-upstart-wrapper --uninstall
```Then you can use the normal upstart commands to manage haproxy:
```bash
$ service haproxy start
$ service haproxy reload
$ service haproxy stop
```license
-------MIT