indexzero/forever — Issue #139: Restart causes forever to forget logging options
Author: shilov
Created: 2011-10-15 21:50:28+00:00
State: open

Running `forever restart` causes forever to forget about previous logging options..

[ec2-user@server log]$ forever start -o /www/log/forever-outfile.log -e /www/log/forever-errors.log /www/server.js
info: Running action: start
info: Forever processing file: /www/server.js

[ec2-user@server log]$ ps aux | grep forever
ec2-user 18597 0.4 0.1 716576 9628 ? Ssl 21:39 0:00 node /usr/bin/forever start -o /www/log/forever-outfile.log -e /www/log/forever-errors.log /www/server.js
ec2-user 18601 0.0 0.0 103268 840 pts/2 S+ 21:39 0:00 grep forever

[ec2-user@server log]$ forever restart -o /www/log/forever-outfile.log -e /www/log/forever-errors.log /www/server.js
info: Running action: restart
info: Forever restarted process(es):
data: uid command script forever pid logfile uptime
data: [0] $tf8 node /www/server.js 18597 18598 /home/ec2-user/.forever/$tf8.log 0:0:0:30.193

[ec2-user@server log]$ ps aux | grep forever
ec2-user 18607 0.0 0.1 716724 13664 ? Ssl 21:40 0:00 node /usr/bin/forever start --sourceDir / -l /home/ec2-user/.forever/.log --append -o /www/log/forever-outfile.log -e /www/log/forever-outfile.log /www/server.js

After the restart, you can see how it's now sending everything to **/www/log/forever-outfile.log** despite being told to send errors to **forever-errors.log**