systemd-tmpfiles-clean.service
инициируется systemd-tmpfiles-clean.timer
. Вы можете проверить таймеры с помощью systemctl list-timers
.
По крайней мере, в Ubuntu 16.04 systemd-tmpfiles-clean.timer
определяется как
# Use `systemctl cat systemd-tmpfiles-clean.timer` to get your corresponding file
#
# /lib/systemd/system/systemd-tmpfiles-clean.timer
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Daily Cleanup of Temporary Directories
Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)
[Timer]
OnBootSec=15min
OnUnitActiveSec=1d
Таким образом, таймер запускается systemd-tmpfiles-clean.service
через 15 минут после загрузки, а затем каждые 24 часа.
Для получения дополнительной информации см. systemd.timer(5)
, systemd.service(5)
и systemd.unit(5)
.
Копия репозитория git — это просто каталог.
gnu mv
может перемещать каталоги в новые разделы, так что просто используйте это.