I have a service managed by systemd that has the following systemd config telling systemd to write the logs to a file directly (no syslog or anything) StandardOutput=file:/var/log/foo/my.log I have a logrotate rule /var/log/foo/*.log { rotate 31 daily missingok notifempty compress delaycompress sharedscripts } What's happening is that the logs are being rotated but the service is still writing to
![How to properly logrotate logs of service managed by systemd via `file:` config](https://cdn-ak-scissors.b.st-hatena.com/image/square/b464c2cda694ab68f456c208dff3f30700a47c13/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Funix%2FImg%2Fapple-touch-icon%402.png%3Fv%3D32fb07f7ce26)