From 7b39f9660b6c91a44cfaaba480640fe8ea223bba Mon Sep 17 00:00:00 2001 From: atrandom Date: Thu, 18 Aug 2016 21:59:45 +0900 Subject: [PATCH] fix #1063 change startup script destination (for Gentoo/OpenRC) --- lib/API/Startup.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/API/Startup.js b/lib/API/Startup.js index c20448fc..15752565 100644 --- a/lib/API/Startup.js +++ b/lib/API/Startup.js @@ -81,6 +81,10 @@ module.exports = function(CLI) { destination = '/etc/rc.d/pm2'; } + if (platform == 'gentoo') { + destination = '/etc/init.d/pm2' + } + /** * 2# Resolve template file path */