mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
(startup) create /var/lock/subsys path if needed #2598
This commit is contained in:
parent
84570b918d
commit
44baea5b65
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user