64 Commits

Author SHA1 Message Date
Unitech
f47c648b7f feat: allow to auto dump on start/stop/delete via pm2 set pm2:autodump true #2078 #3431 2019-05-29 00:33:11 +02:00
Unitech
29a9c894a2 feat: allow pm2 startup via standalone install 2019-05-19 08:44:48 +02:00
Unitech
f8eeba9a55 feat: pm2 save --force 2019-04-24 00:46:24 +02:00
Harlen Tan
689ebc9d6e
fix pm2 unstartup fialed in macos
The pm2 unstartup will always failed in macos. Because the pm2.*.plist will never been deleted.

commands = [
        'launchctl remove ' + launchd_service_name + ' || true',
        'rm ' + destination
      ];
launchctl remove always return no-zero value, so rm in the next will never been executed.
2019-03-12 11:39:15 +08:00
Harlen Tan
1f53a6f957
fix spawn ps ENOENT
#3879 

The `process.env.PATH`  is not set in the PATH of plist. And the pm2 will throw command ENOENT error because of it.
2019-01-31 18:16:26 +08:00
Unitech
2bfaaca806 feature: add exponential backoff restart delay via --exp-backoff-restart-delay 2018-09-27 17:05:40 +02:00
Unitech
058ea6e2c9 parse package.json to retrieve module version running in mem + --bail on mocha.opts to fail fast 2018-09-27 15:34:02 +02:00
vince
e8ed1e510a fix: #3896 update file path if we are reading the backup file 2018-09-18 10:46:25 +02:00
Vincent Vallet
7e92855ff5
Merge pull request #3807 from medanat/minimize-async-lib-footprint
Minimize async lib footprint
2018-08-17 10:23:57 +02:00
Vivien Adnot
3d0461c3e0 fixed unstartup when launchd 2018-08-17 09:44:38 +02:00
Yazan Medanat
b8b48e83f7 refactor: removes unused imports. 2018-07-19 10:18:16 -04:00
Yazan Medanat
6466ee44c1 refactor: only import the necessary methods from async. 2018-07-19 10:18:08 -04:00
Aaron Miller
fdeb0c327a feat: add support for openbsd rc.d init scripts 2018-06-16 16:43:04 -07:00
Alexandre Strzelewicz
ff1a7f315b fix: startup script issue 18.04 #3645 2018-05-26 19:14:37 +02:00
Alexandre Strzelewicz
0e4453d9cc chore: merge master in development 2018-05-26 19:12:41 +02:00
Unitech
ee5e6a06cb refactor: faster cli with less require 2018-05-17 23:34:48 +02:00
Unitech
4576b4c97b refactor: replace fs-extra with node calls 2018-05-17 19:47:49 +02:00
Unitech
f8a6a63462 fix: fix systemd command for ubuntu 18 #3645 2018-05-17 17:27:24 +02:00
Unitech
d529f675d0 fix: #3645 throttle startup 2018-05-10 19:10:47 +02:00
vince
bc07f43b11 fix: use polyfill module for copySync with node 4.x 2018-03-05 17:11:36 +01:00
vince
8951184688 fix: solve empty list when no process and try to update pm2 2018-03-02 15:25:15 +01:00
vince
ced2835d21 feature: #3485 add cleardump command 2018-03-02 12:18:54 +01:00
vince
f2523f6a6b fix: #3485 fix issue when there is empty dump file 2018-03-02 10:22:23 +01:00
Unitech
f0c34b7bfa #3356 PR has introduced bug... 2017-12-15 00:32:34 +01:00
Unitech
28f11b9fb6 #3347 --wait-ip option to override systemd script for waiting full internet connectivity 2017-12-12 13:27:01 +01:00
Unitech
16bb69fa25 startup: systemd disable chmod 2017-12-06 20:09:13 +01:00
Richard Sartori
0abcfc8dc6 FreeBSD Startup Support 2017-12-02 09:28:04 +01:00
Daniel Tschinder
fb8fbe117a feat(startup): Allow custom service names for startup scripts
Especially when running mutliple instances of pm2 on one machine with
the same user this helps to create multiple startup scripts for each of
the instance.
2017-10-25 10:16:51 +02:00
Unitech
43b6000171 reword the startup command helper 2017-09-14 16:41:40 +02:00
bisubus
de64ea3bfb Add a fallback to dump backup on resurrection 2017-07-06 00:37:12 +03:00
bisubus
94d3579579 Add dump backup creation on dump save 2017-07-06 00:37:12 +03:00
Unitech
5f306fe66c #2980 PM2_SILENT=true pm2 startup 2017-07-03 00:31:26 +02:00
pva
0bcee6f8d1 Improve gentoo init script (#2849)
Use default start() function that is configured with command* variables.
It'll use start-stop-daemon to start daemon and check that pidfile was
created.

Allow user to override user that will be used to run pm2 daemon. As a
consequence install init script with pm2 name instead of pm2-root.

Provide some information on how to start services aftewards.

Make reload function working.
2017-05-21 01:28:31 +02:00
Unitech
e5aa61ddfa CHANGELOG + do not systemctl status on unstartup 2017-02-21 14:39:21 +01:00
porsager
76b5ebc391 Make unstartup behavior predictable 2017-02-15 22:11:28 +01:00
porsager
5c8323c358 Use proper launchd service name 2017-02-15 21:58:12 +01:00
porsager
1acc01f0fa Fix removal of old pm2 named services 2017-02-15 21:54:20 +01:00
porsager
d0928ba1d2 Merge remote-tracking branch 'origin/development' into multi-user-startup
# Conflicts:
#	lib/API/Startup.js
2017-02-15 15:05:03 +01:00
porsager
802e5de1f2 Fix systemd to use service_name 2017-02-15 10:39:08 +01:00
porsager
8a7f7edfc6 Add support for multi user startup 2017-02-15 10:24:09 +01:00
George Kalpakas
57d28420fc (startup) fix systemv on debian
Discussion: a788e523e5 (commitcomment-20851443)
2017-02-13 15:29:00 +02:00
soyuka
6b0558dc46 fix #2617 only load startup file with launchctl 2017-01-28 21:02:31 +01:00
vmarchaud
334ced4a7f (typo) remove msg for unstartup on gentoos 2017-01-12 17:23:36 +01:00
Tomofumi Hayashi
7ab7b0f107 Support openrc (gentoo linux). 2017-01-12 20:48:58 +09:00
Manuel Kasper
3d2ee87558 Fix FreeBSD rc.conf overwrite
Overwriting rc.conf on FreeBSD is very serious and will lead to a non-working system at the next reboot, as all IP address information, daemon configuration, etc. is lost.
2016-12-27 18:40:03 +01:00
vmarchaud
44baea5b65 (startup) create /var/lock/subsys path if needed #2598 2016-12-27 15:37:28 +01:00
vmarchaud
84570b918d (startup) stop command execution flow when a command fail #2587 2016-12-27 15:34:39 +01:00
vmarchaud
9212975fb8 (startup) add warning when initsystem provided isnt the one detected by PM2 2016-12-27 15:18:29 +01:00
Unitech
d6b55a0418 pm2@2.2.2 [startup refactor] 2016-12-15 14:52:20 +01:00
Unitech
20c4840aab #2574 support amazon systemv 2016-12-15 14:45:49 +01:00