diff --git a/contrib/.gitignore b/contrib/.gitignore index c2d09c33..85acde38 100644 --- a/contrib/.gitignore +++ b/contrib/.gitignore @@ -1,2 +1,3 @@ nghttpx-init nghttpx.service +nghttpx-upstart.conf diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 596dc431..07a3bf8b 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -21,7 +21,7 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -configfiles = nghttpx-init nghttpx.service +configfiles = nghttpx-init nghttpx.service nghttpx-upstart.conf EXTRA_DIST = $(configfiles:%=%.in) nghttpx-logrotate @@ -33,7 +33,7 @@ nghttpx-init: %: $(srcdir)/%.in chmod +x $@.tmp mv $@.tmp $@ -nghttpx.service: %: $(srcdir)/%.in +nghttpx.service nghttpx-upstart.conf: %: $(srcdir)/%.in $(edit) $< > $@ $(configfiles): Makefile diff --git a/contrib/nghttpx-upstart.conf.in b/contrib/nghttpx-upstart.conf.in new file mode 100644 index 00000000..0b799160 --- /dev/null +++ b/contrib/nghttpx-upstart.conf.in @@ -0,0 +1,8 @@ +# vim: ft=upstart: + +description "HTTP/2 reverse proxy" + +start on runlevel [2] +stop on runlevel [016] + +exec @bindir@/nghttpx