From ff1a7f315bfee38eb9fd9cdd63efcc0d971585f8 Mon Sep 17 00:00:00 2001 From: Alexandre Strzelewicz Date: Sat, 26 May 2018 19:14:37 +0200 Subject: [PATCH] fix: startup script issue 18.04 #3645 --- lib/API/Startup.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/API/Startup.js b/lib/API/Startup.js index 08d487c3c..d35cd05cf 100644 --- a/lib/API/Startup.js +++ b/lib/API/Startup.js @@ -221,21 +221,9 @@ module.exports = function(CLI) { else template = getTemplate('systemd'); destination = '/etc/systemd/system/' + service_name + '.service'; - commands = [ 'systemctl enable ' + service_name - ] - - try { - fs.readFileSync(cst.PM2_PID_FILE_PATH).toString() - } catch(e) { - commands = [ - 'systemctl enable ' + service_name, - 'systemctl start ' + service_name, - 'systemctl daemon-reload', - 'systemctl status ' + service_name - ] - } + ]; break; case 'ubuntu14': case 'ubuntu12':