Edit file File name : jetmongod Content :/usr/local/jetapps/var/log/mongod/mongod.log { daily rotate 14 compress dateext missingok notifempty sharedscripts copytruncate create 0600 root root postrotate /bin/kill -SIGUSR1 $(cat /usr/local/jetapps/var/run/mongod/mongod.pid 2>/dev/null) &>/dev/null || true endscript } Save