From 9d1d94d45d6519fad5c88f0664fbc8c294fc5b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Bo=CC=88ning?= Date: Thu, 2 Apr 2015 15:24:13 +0200 Subject: [PATCH] Add start on certain runlevel for example configs --- examples/upstart/manage-many/sidekiq.conf | 5 +++-- examples/upstart/manage-one/sidekiq.conf | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/upstart/manage-many/sidekiq.conf b/examples/upstart/manage-many/sidekiq.conf index 734f33a6..83c3a092 100644 --- a/examples/upstart/manage-many/sidekiq.conf +++ b/examples/upstart/manage-many/sidekiq.conf @@ -17,8 +17,9 @@ description "Sidekiq Background Worker" -# no "start on", we don't want to automatically start -stop on (stopping sidekiq-manager or runlevel [06]) +# This starts upon bootup and stops on shutdown +start on runlevel [2345] +stop on runlevel [06] # change apps to match your deployment user if you want to use this as a less privileged user (recommended!) # setuid deploy diff --git a/examples/upstart/manage-one/sidekiq.conf b/examples/upstart/manage-one/sidekiq.conf index 10ef47d9..38e13a5d 100644 --- a/examples/upstart/manage-one/sidekiq.conf +++ b/examples/upstart/manage-one/sidekiq.conf @@ -17,8 +17,9 @@ description "Sidekiq Background Worker" -# no "start on", we don't want to automatically start -stop on (stopping workers or runlevel [06]) +# This starts upon bootup and stops on shutdown +start on runlevel [2345] +stop on runlevel [06] # change to match your deployment user # setuid deploy