- Remove tmpwatch.daily cron script, replace it with systemd timer. - Remove cron as a dependency. - Add tmpwatch.service, tmpwatch.timer, rename tmpwatch.daily as /usr/sbin/tmpwatch-autoclean. The systemd timer/service triggers this newly named script. - This change is related to bsc#1115430. OBS-URL: https://build.opensuse.org/request/show/1117557 OBS-URL: https://build.opensuse.org/package/show/Base:System/tmpwatch?expand=0&rev=27
17 lines
451 B
Desktop File
17 lines
451 B
Desktop File
[Unit]
|
|
Description=Automatic clean-up execution of tmpwatch
|
|
|
|
[Service]
|
|
# added automatically, for details please see
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
ProtectHostname=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
RestrictRealtime=true
|
|
# end of automatic additions
|
|
Type=oneshot
|
|
ExecStart=/bin/bash -ce "/usr/sbin/tmpwatch-autoclean"
|