linux - Switch forever logs without stopping forever service -
we using forever in our production environment , when trying rotate logs forever process killed though i'm using copytruncate. now, can bypass restarting forever service in postrotate scripts, wanted know whether there command change forever log file. - forever restart -l new_log.log app.js
is there way this? or stopping , starting forever process absolute neccesity?
thanks bunch.
yes, stopping , restarting necessary. i'd recommend using pm2 instead. offers same forever
, much more. it's lot easier use. , has log-rotate plugin automatically takes care of log rotation, hassle-free , configured want.
Comments
Post a Comment