Releases: lrupp/suse-online-update
2.4.1: add dbus to the ignored list of services
This tiny update just adds dbus
to the list of ignored services for a restart.
2.4: introduce zypper_ps_restart
Bugfix: do not use '--with-optional' if update type is 'package'
The new --with-optional
parameter results in a zypper error when called in combination with the --type package
parameter. This release will only add the new optional parameter in case the type is not package.
Allow installing optional updates
A new option, that adds the --with-optional parameter when calling zypper to also install updates marked as optional.
Please adjust the config variable INCLUDE_OPTIONAL
in /etc/sysconfig/suse-online-update or run the script with the parameter -o
.
Introduce automatic service restart after update
Introducing new feature: automatic service restart after an update
A new option allows to restart services, that were affected by an update, automatically.
Specific services can be excluded from this automatic restart (like udev), if they are known to cause problems. On the other hand, this feature results in more secure systems, as services that use updated libraries (for example) will be restarted automatically after an update. This happens currently not automatically - services are only restarted if their packages get updated. If a library (like ssl for example) that is used by the service gets updated, the running service still uses the old version until restarted. The options RESTART_SERVICES (default: no) and IGNORE_SERVICES_FROM_RESTART in /etc/sysconfig/suse-online-update are used to configure this feature.
IGNORE_SERVICES_FROM_RESTART can contain a list of services (separated by whitespace) that are excluded from a restart. This is useful for services that are known to be problematic (like udev) or need to be handled in another way (like services that run in an HA setup).
Version 2.0
- added a new variable: 'ZYPPER_UPDATE_TYPE' to sysconfig
This allows to define the type that zypper should use to update.
Possible types: patch, package, pattern, product, srcpackage
Default: patch (as before) - check zypper exit codes and try to print a useful message at the end of
an update run. Includes recursion in case zypper updated the update stack
itself. - add debug option to commandline options
- extended man page and usage output for new options
Version 1.9
- touch the logfile early, to see if we can write to it later
Version 1.8
- use service and timer files instead of cron for systemd distributions
- provide a separate man page
- provide usage information via '-h' option and some additional options
- enhance error handling again if logfile could not be written
Version 1.7
- better error handling, if log file could not be written
Version 1.6
- split out cleanup part and make it optional
- log errors from the permission run to the logfile
- enhance the sysconfig files with two additional options:
- RUN_CLEANUP : should cleanup run at all?
- CLEANUP_USER : limit cleanup to files from this user
- add legal header