(startup) create /var/lock/subsys path if needed #2598

This commit is contained in:
vmarchaud 2016-12-27 15:37:28 +01:00
parent 84570b918d
commit 44baea5b65

View File

@ -210,6 +210,7 @@ module.exports = function(CLI) {
destination = '/etc/init.d/pm2';
commands = [
'chmod +x ' + destination,
'mkdir -p /var/lock/subsys',
'touch /var/lock/subsys/pm2',
'update-rc.d pm2 defaults'
];
@ -221,6 +222,7 @@ module.exports = function(CLI) {
destination = '/etc/init.d/pm2';
commands = [
'chmod +x ' + destination,
'mkdir -p /var/lock/subsys',
'touch /var/lock/subsys/pm2',
'chkconfig --add ' + destination,
'chkconfig pm2 on',