Skip to content

Commit

Permalink
fix: startup script issue 18.04 #3645
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed May 26, 2018
1 parent 0e4453d commit ff1a7f3
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions lib/API/Startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit ff1a7f3

Please sign in to comment.