21 Commits

Author SHA1 Message Date
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
Luis Lobo Borobia
211c4714d6 fix logrotate template (#2814)
* It should only log rotate on log files

As explained in https://github.com/Unitech/pm2/issues/2498#issuecomment-263678535 :

The logs are being saved as index-out-0.log and index-error-0.log.
If you just leave /home/user/.pm2/pm2.log /home/user/.pm2/logs/*, the first time logrotate runs, it generates index-out-0.log.1. The second time it runs it generates index-out-0.log.1.1, and it continues creating files for each file found, since you are including all files.
It should be reverted back to *.log or *log
2017-04-06 10:50:37 +02:00
Unitech
a1adf2e7a0 (template) change dbl quote to simple quote for ecosystem template 2017-03-28 22:44:22 +02:00
vmarchaud
cd4e201215 (startup) drop start timeout #2765 2017-03-16 00:44:52 +01:00
Unitech
422c16d7e8 (ecosystem tpl) fix path 2017-02-23 21:28:51 +01:00
Unitech
1f855da544 #2707 avoid Restart=always with systemd (pid refresh problem) 2017-02-19 15:07:11 +01:00
Max Mathieu
501c4d3954 Make sure pm2 does not fill up systemd logs 2017-02-10 14:15:21 -05:00
vmarchaud
61a7197c8d (startup) increase restart timeout for systemd #2674 2017-02-01 17:05:08 +01:00
Unitech
683c1ea50b (CLI) pm2 ecosystem simple 2017-01-29 13:33:26 +01:00
Tomofumi Hayashi
7ab7b0f107 Support openrc (gentoo linux). 2017-01-12 20:48:58 +09:00
vmarchaud
dabf2ba225 (startup tmpl) wrong cmd for systemd #2590 2016-12-21 14:10:30 +01:00
Unitech
b86a2cce05 (startup) minor fix on command lines + add every PATH on systemd env 2016-12-08 01:50:33 +01:00
Unitech
c556faa14d (startup) keepalive launchd 2016-12-06 14:43:12 +01:00
Unitech
cf1151c163 (startup) launchd fixes for MacOSx 2016-12-06 14:37:31 +01:00
Unitech
67d19e4e3b (startup) autodetect platform + fix systemd file + fix upstart file + do not launch PM2 as root on startup commands + pm2 unstartup 2016-12-06 02:09:00 +01:00
Unitech
1dc0d5b9ec (startup refactor) 2016-12-04 19:23:18 +01:00
Antoine Bluchet
bc99eac8d6 Logrotate on all files in ~/.pm2/logs 2016-11-08 08:56:51 +01:00
Unitech
9f88b486de #2101 pm2 ecosystem now generates a javascript configuration file 2016-10-26 19:24:29 +02:00
Unitech
90e3c1f644 (docker integration) #2320 feature v1 POC (test+cmds+logic) 2016-08-14 13:21:05 +02:00
Unitech
5f9a83ed8d refactor progress 2016-06-05 12:39:04 +02:00
Unitech
1886f73a2f #2203 deep refactor 2016-06-04 14:04:26 +02:00