On Sun, Feb 01, 2026 at 12:58:00PM -0500, Greg Wooledge wrote:

[...]

> In your case, I would recommend moving the log file out of /tmp and
> into a permanent location, and creating it in advance with the proper
> owner, group and permissions.  That's the sensible way.
> 
> If you insist on being not sensible, then perhaps you could configure
> your system to create this file in /tmp every time you boot, either
> using systemd-tmpfiles(8) or an /etc/rc.local script or something
> along those lines.  This would not be my choice.  A log file shouldn't
> be in /tmp.

Regardless of whether my hunch in the other post is right or not, I
agree wholeheartedly on this. /tmp is OK for playing around and trying
to get things running, but not for production. Being unable to debug
a problem is just a boot away :)

A good place for the log file is, of course, /var/log. Proper log
rotation is provided by logrotate.

Cheers
-- 
tomás

Reply via email to