* fix calculations for time differences * fix extension for zip compression * fix omitted copy for logs with `mail` and `rotate 0` * fix wrongly skipping copy with `copytruncate` and `compress` * fix ambiguities between `mode`, `UID` and `GID` parsing when not specifying all options * fix hang when encountering a named pipe * on prerotate failure logs are preserved instead of rotated * in case a configuration file was skipped due to unsafe permissions the * exit status after rotattion will be `1` * the state is no longer written to non-regular files * the systemd timer now correctly utilizes load distribution * add dateformat specifier `%z` for timezone offsets * change default mode for created `olddir` directories to `0755` * support quoted user and group names in `su`, `create`, and `createolddir` - update logroate.keyring: new maintainer - drop logrotate-3.19.0-systemd_add_home_env.patch: - Adapted man page: logrotate-3.19.0-man_logrotate.patch - Add "Environment=HOME=/root" to logrotate.service file in order - remove unused PreReq tags - Enable Persistent timer since we are now in systemd 219. * logrotate-3.7.8-conf.patch > logrotate-conf.patch * logrotate-manpage_config_clarification.patch - Also, avoid logrotate unit activation when the system is - Migrate from cron to systemd timer units, this is overall the most important package to migrate since it is one OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=108
36 lines
877 B
Desktop File
36 lines
877 B
Desktop File
[Unit]
|
|
Description=Rotate log files
|
|
Documentation=man:logrotate(8) man:logrotate.conf(5)
|
|
RequiresMountsFor=/var/log
|
|
ConditionACPower=true
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/sbin/logrotate-all
|
|
|
|
# performance options
|
|
Nice=19
|
|
IOSchedulingClass=best-effort
|
|
IOSchedulingPriority=7
|
|
Environment=HOME=/root
|
|
|
|
# hardening options
|
|
# details: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
|
|
# no ProtectHome for userdir logs
|
|
# no PrivateNetwork for mail deliviery
|
|
# no NoNewPrivileges for third party rotate scripts
|
|
# no RestrictSUIDSGID for creating setgid directories
|
|
LockPersonality=true
|
|
MemoryDenyWriteExecute=true
|
|
PrivateDevices=true
|
|
PrivateTmp=true
|
|
ProtectClock=true
|
|
ProtectControlGroups=true
|
|
ProtectHostname=true
|
|
ProtectKernelLogs=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelTunables=true
|
|
ProtectSystem=full
|
|
RestrictNamespaces=true
|
|
RestrictRealtime=true
|