Skip to content

Commit

Permalink
Fixes pencilblue#755 Allows PB to listen for process signals and shut…
Browse files Browse the repository at this point in the history
…down appropriately
  • Loading branch information
brianhyder committed Sep 22, 2015
1 parent 3557cd1 commit 717d619
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/system/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ var util = require('../util.js');
*/
module.exports = function System(pb){

//pb dependencies
var log = pb.log;

/**
*
* @private
Expand Down
1 change: 1 addition & 0 deletions pencilblue.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ function PencilBlue(config){
*/
this.start = function() {
var self = this;
pb.system.registerSignalHandlers(true);
pb.system.onStart(function(){
self.init();
});
Expand Down

0 comments on commit 717d619

Please sign in to comment.