[systemd-devel] PrivateTmp and "tmpwatch"

Reindl Harald h.reindl at thelounge.net
Sun Feb 3 07:52:42 PST 2013


hi

may it be that PrivateTmp does not refresh the folders
/tmp/systemd-private* and if "tmpwatch" is deleting
them they are mnot re-created?

Can't create/write to file '/tmp/#sql_57d8_0.MYI' (Errcode: 2)

after restart mysqld.service which is here configured with
PrivateTmp all is fine again - recently i decided to dedicate
a special folder for mysqltmp and modified my daily logwatch
to ignore folders starting with "systemd-" but this is not
really perfect

i would suggest systemd to touch the folders regulary or watch if
they are removed by whatever foreign process and re-create them

[root at buildserver:~]$ rpm -q systemd
systemd-44-23.fc17.x86_64
_____________________________________________________________

[root at buildserver:~]$ cat /etc/cron.daily/tmpwatch-rh
#!/usr/bin/bash
flags=-umc
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix -x /tmp/.ICE-unix -x
/tmp/.Test-unix -X '/tmp/hsperfdata_*' -X '/tmp/systemd*' 1d /tmp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130203/acc5ccc4/attachment.pgp>


More information about the systemd-devel mailing list