forked from gnufied/backgroundrb
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made the startup script more lsb compliant: added status, restart, ma…
…de start clean the old pidfile in case of dead/crased process, and made stop exit 0 if already stopped. Also, moved requires and environment loads only to the correct part of start, so all other actions (ex. stop, status) happen immediately without loading all of rails. Signed-off-by: Hemant Kumar <gethemant@gmail.com>
- Loading branch information
Showing
3 changed files
with
107 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
require 'yaml' | ||
require 'erb' | ||
module BackgrounDRb | ||
class Config | ||
def self.parse_cmd_options(argv) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters