0cc0342925- Bump to version 24
devel
Franck Bui
2023-06-21 08:51:21 +0000
4dc045d4df- Drop %tmpfiles_create_package It can't work during transactional updates because the paths that systemd-tmpfiles usually operates on (such as /var) can't be changed. It appears that the only user of this macro doesn't really need this macro so let's drop it.
Franck Bui
2023-06-20 16:04:19 +0000
ca23be8300- Drop %sysusers_create_inline It's deprecated and the only user of this macro is being converted to %sysusers_create_package. So drop it now before the deprecated macro attracts more users.
Franck Bui
2023-06-20 16:00:45 +0000
ff6965c5cb- Unlike systemd-tmpfiles call in %tmpfiles_create_package(), systemd-sysusers must always be called by %sysusers_create_package() even on transactional systems since it's part of the macro contract. Writing to /etc is not recommended on such systems but it has to work anyways.
Franck Bui
2023-06-20 15:01:29 +0000
3f53730fbdAccepting request 1093498 from Base:System
Dominique Leuenberger
2023-06-16 14:53:13 +0000
695ae9a4b5- Bump to version 23
Franck Bui
2023-06-16 13:11:51 +0000
8cd9f77cbf- Restore the check that prevents systemd-tmpfiles to run during transactional updates The check has been mistakenly dropped during the switch to file-triggers.
Franck Bui
2023-06-16 13:11:13 +0000
5c9fe37785Accepting request 1087187 from Base:System
Dominique Leuenberger
2023-05-24 18:21:22 +0000
25a2295a3a- Bump to version 22
Franck Bui
2023-05-15 09:21:44 +0000
db8376beabfix %tmpfiles_create_package and drop 'fi' leftover
Franck Bui
2023-05-15 09:21:10 +0000
ba6e5f27b2avoid macros with empty bodies
Franck Bui
2023-05-11 09:29:22 +0000
9fee5b69d2adjust the 2 last entries of the changlog
Franck Bui
2023-05-10 16:28:52 +0000
c32fb55b29- Make sure that (futur) users of %sysctl_apply() and %binfmt_apply() will call the macros with arguments. - Leave %sysctl_apply() and %binfmt_apply() empty (bsc#1211272) Only the former has very few users currently and none of them has specific code relying on the new sysctl values between the macros and the file triggers.
Franck Bui
2023-05-10 12:40:05 +0000
1ac61c191a- Test the presence of /run/systemd/system to check whether we're operating during transactional updates. Hence the behavior is the same when operating in a chroot or during transactional updates. - Leave %sysctl_apply() and %binfmt_apply() empty as there's no (interesting) user of these macros for now.
Franck Bui
2023-05-10 09:30:02 +0000
d7c94ee34f- Bump to version 21
Franck Bui
2023-05-09 14:09:59 +0000
a97f9f97e5- Rely on 'systemd-update-helper' shell script to implement %service_* macros The helper was introduced by upstream commit 6d825ab2d42d3219e49a1. The main advantage is that we no more need to rebuild all packages to update the macro definitions. Internally the script relies on file triggers for 'daemon-reload' operations and for restarting units (when needed). - Update other macros to reflect the fact that systemd package provides file triggers for sysusers, tmpfiles, hwdb, and journal catalog.
Franck Bui
2023-05-09 14:09:13 +0000
65e4499aadAccepting request 1075207 from Base:System
Dominique Leuenberger
2023-04-03 15:45:18 +0000
bd396a705f- Bump to version 20
Franck Bui
2023-03-29 11:38:28 +0000
3b2c7f4694- %service_del_postun: make sure to restart services if /etc/sysconfig/service is not present.
Franck Bui
2023-03-29 11:35:52 +0000
3d2aa53763- Drop support for -n/-f options in %service_del_postun These options have been deprecated since a long time and the last package relying on them (drkonqi5) in the Factory repository has been updated.
Franck Bui
2023-03-29 10:42:15 +0000
ee0e9c503aAccepting request 1061222 from Base:System
Dominique Leuenberger
2023-01-28 17:42:42 +0000
a8a48f191f- Bump to version 19
Franck Bui
2023-01-26 14:12:56 +0000
ef8c808e84- udevadm hwdb is deprecated, use systemd-hwdb instead.
Franck Bui
2023-01-26 14:11:52 +0000
5e6ce41a2eAccepting request 1037703 from Base:System
Dominique Leuenberger
2022-11-25 12:11:09 +0000
c89bcb87a5- Bump to version 18
Franck Bui
2022-11-23 17:14:27 +0000
ccdb965aa5Accepting request 1037656 from home:dancermak:branches:Base:System
Franck Bui
2022-11-23 17:12:56 +0000
4d32552d81Accepting request 1007693 from Base:System
Fabian Vogt
2022-10-10 16:43:05 +0000
756bd2c050- Bump to version 17
Franck Bui
2022-10-03 13:08:03 +0000
af577426ebAccepting request 947356 from Base:System
Dominique Leuenberger
2022-01-22 07:17:46 +0000
ccdcf965ab- Bump to version 15
Franck Bui
2022-01-19 08:27:38 +0000
ccdbdfce8d- %sysusers_create_inline was wrongly marked as deprecated - %sysusers_create can be useful in certain cases and won't go away until we'll move to file triggers. So don't mark it as deprecated too
Franck Bui
2022-01-18 21:06:57 +0000
c89bed18acAccepting request 931955 from Base:System
Dominique Leuenberger
2021-11-21 22:51:15 +0000
6f9fe0af97- Bump version to 14
Franck Bui
2021-11-17 12:31:01 +0000
bbea6a0733- Introduce %_systemd_util_dir It's a backport of upstream commit 3bc66bfa0136e370a8f7b06c3b69a52f5636ef82.
Franck Bui
2021-11-17 12:27:43 +0000
e39be33398Accepting request 922188 from Base:System
Dominique Leuenberger
2021-10-25 13:16:41 +0000
818d21e58dAccepting request 922165 from home:dimstar:Factory
Franck Bui
2021-09-29 13:21:24 +0000
efa0f81b4cAccepting request 903200 from Base:System
Dominique Leuenberger
2021-07-03 18:50:32 +0000
4a8a20b75d- Bump to version 13
Franck Bui
2021-06-30 09:59:52 +0000
ad43e5ad9f- Make use of "Suggests:" in %systemd_ordering Until libzypp supports "OrderWithRequires:", we need to specify a similar ordering constraint that can be understood by the dep solver as well. Hence the use of "Suggests:" in %systemd_ordering (workaround for bsc#1187332).
Franck Bui
2021-06-30 09:59:17 +0000
a42dcffc95Accepting request 894598 from Base:System
Dominique Leuenberger
2021-05-23 21:30:19 +0000
bbc4a5b794- Bump to version 12
Franck Bui
2021-05-20 10:18:45 +0000
37d00203df- Introduce %sysusers_create_package %sysusers_create and %sysusers_create_inline are now deprecated and the new macro should be used instead. Upstream commit 07a7d4a0040d221ff09e527e91c112b4ffab1dba. - Introduce %tmpfiles_create_package %%tmpfiles_create is now deprecreated and the new macros should be used instead. Upstream commit 0f78fee8d039000b987848a558fbaa15d916e14e.
Franck Bui
2021-05-20 10:17:34 +0000
f0c8ea9afc- %sysusers_create_inline: use here-docs instead of echo (bsc#1186282) Upstream commit dd2490ae12ad1e1795ecbf8f8944b950da9c8d06.
Franck Bui
2021-05-20 09:47:35 +0000
35bb9dbe84Accepting request 877267 from Base:System
Dominique Leuenberger
2021-03-11 19:06:48 +0000
6fc47e8204- Bump to version 11
Franck Bui
2021-03-05 15:09:00 +0000
4463ee13e3Accepting request 876976 from home:alarrosa:branches:Base:System
Franck Bui
2021-03-05 11:19:59 +0000
a079230c8dAccepting request 876971 from home:alarrosa:branches:Base:System
Franck Bui
2021-03-05 11:09:08 +0000
9f0979dfb3Accepting request 876963 from home:alarrosa:branches:Base:System
Franck Bui
2021-03-05 10:58:52 +0000
7dc94d55a2Accepting request 871420 from Base:System
Dominique Leuenberger
2021-02-17 17:09:42 +0000
b9ed9090dc- Bump version to 10
Franck Bui
2021-02-12 11:46:53 +0000
a4d73fe809- Make upstream %systemd_{pre,post,preun,postun} aliases to their SUSE counterparts Packagers can now choose to use the upstream or the SUSE variants indifferently. For consistency the SUSE variants should be preferred since almost all SUSE packages already use them but the upstream versions might be usefull in certain cases where packages need to support multiple distros based on RPM.
Franck Bui
2021-02-12 11:45:54 +0000
988d319a8f- Improve the logic used to apply the presets (bsc#1177039) Before presests were applied at a) package installation b) new units introduced via a package update (but after making sure that it was not a SysV initscript being converted). The problem is that a) didn't handle package a renaming or split properly since the package with the new name is installed rather being updated and therefore the presets were applied even if they were already with the old name. We now cover this case (and the other ones) by applying presets only if the units are new and the services are not being migrated. This regardless of whether this happens during an install or an update.
Franck Bui
2021-02-12 11:01:43 +0000
9a8aa1a4fcAccepting request 850414 from Base:System
Dominique Leuenberger
2020-11-29 11:18:35 +0000
e45618db9aupdate comment in changelogs to reflect that systemctl preset does a daemon-reload
Franck Bui
2020-11-24 11:02:18 +0000
e531b48b7a- Bump version to 9
Franck Bui
2020-11-23 20:33:49 +0000
f90fb4cf4f- daemon-reload is not needed in %service_add_post Applying presets, ie enabling/disabling units, doesn't require to update units loaded in PID1 memory. It's actually needed after but it's done only once by %service_del_postun.
Franck Bui
2020-11-23 20:19:37 +0000
f65be0ea90- Rename the tag file used to detect when presets need to be applied Rather than placing these tags directly under /run, let's place them under /run/systemd/rpm. This also has the benefit to make the workaround for bsc#1059627 no more needed.
Franck Bui
2020-11-23 18:03:40 +0000
991b3b62db- %service_del_preun doesn't accept -f/-n options anymore The few package calling %service_del_preun with '-f' or '-n' option have been fixed. These options are not needed anymore.
Franck Bui
2020-11-23 17:29:55 +0000
b24f8bd8f8Accepting request 847458 from Base:System
Dominique Leuenberger
2020-11-23 14:36:32 +0000
221719424c- Bump version to 8
Franck Bui
2020-11-10 11:22:09 +0000
163b073fa1- Introduce %service_del_postun_with_restart() It's the counterpart of %service_del_postun_without_restart() and replaces the '-f' option of %service_del_postun(). - Expand %service_del_postun_without_restart in %service_del_postun
Franck Bui
2020-11-10 11:04:59 +0000
198ba4caa7- Add a missing space in %_restart_on_update()
Franck Bui
2020-11-10 09:13:24 +0000
e3e0721640- Bump version to 7
Franck Bui
2020-11-09 11:40:24 +0000
4097fa89ce- Dont apply presets when migrating from a disabled initscript (bsc#1178481)
Franck Bui
2020-11-09 11:38:05 +0000
aba6870f75- Bump version to 6
Franck Bui
2020-11-09 08:48:05 +0000
d3585cac9cUpdate one comment
Franck Bui
2020-11-09 08:46:43 +0000
664f945153- Test for the presence of systemd only once in %service_add_post
Franck Bui
2020-11-09 08:43:46 +0000
b8ac3768b4- No need to run 'systemd-sysv-convert --save' in %service_add_pre anymore Due to the fact that the initscripts being removed during package updates are still available in %post, systemd-sysv-convert has been reworked so it's only needed to call it in %post.
Franck Bui
2020-11-09 07:45:47 +0000
fe75626308- Make rpmbuild load our own macros.systemd to import %{%_unitdir} properly Ideally we should also own other %{_*dir} paths... - Bump version to 5
Franck Bui
2020-11-09 07:15:43 +0000
6873a04f30- DISABLE_RESTART_ON_UDPATE is no more read from the (build) environment %service_del_postun_without_restart is the interface that should be used by packages that need to prevent theirs services from being restarted.
Franck Bui
2020-11-02 14:40:43 +0000
4dd7db0039document the previous change
Franck Bui
2020-11-02 08:55:25 +0000
c6f0727a32- Drop DISABLE_STOP_ON_REMOVAL support (jsc#SLE-8968)
Franck Bui
2020-10-30 17:40:53 +0000
bb2e625770Accepting request 839132 from Base:System
Dominique Leuenberger
2020-10-08 11:07:31 +0000
622c3bb210- Bump version to 4.1
Franck Bui
2020-09-25 09:26:01 +0000
d149e5b431Accepting request 829086 from Base:System
Dominique Leuenberger
2020-08-31 15:14:46 +0000
d81d9c2469Accepting request 829057 from home:Pharaoh_Atem:branches:Base:System
Franck Bui
2020-08-25 06:25:03 +0000
d1fdb9ed76Accepting request 684199 from Base:System
Dominique Leuenberger
2019-03-14 21:42:15 +0000
8fac5fa9edAccepting request 684198 from home:fbui:branches:Base:System
Franck Bui
2019-03-12 08:20:41 +0000
4a1ed673ccAccepting request 680402 from Base:System
Dominique Leuenberger
2019-03-04 08:08:29 +0000
f337315c0bAccepting request 680383 from home:fbui:branches:Base:System
Franck Bui
2019-03-01 09:27:15 +0000
7b2e3f4d22- Make sure %_restart_on_update_never and %_stop_on_removal_never don't expand to the empty string Otherwise sequences like the following would result in incorrect shell syntax: if [ ]; then %_restart_on_update_never fi
Franck Bui
2019-02-27 14:16:36 +0000
ec2ade1bb2- Restore one daemon-reload command
Franck Bui
2019-02-27 12:21:44 +0000
8685313b9b- Bump version to 4
Franck Bui
2019-02-25 09:56:11 +0000
e5d6d1a3e5Accepting request 678270 from home:fbui:branches:Base:System
Thomas Blume
2019-02-25 09:47:37 +0000
283ce5b854- Drop $YAST_IS_RUNNING in favor of $SYSTEMD_OFFLINE (bsc#1117489) libzypp now kindly defines SYSTEMD_OFFLINE when appropriate (see bsc#1118758). Therefore we don't need to rely on YAST_IS_RUNNING anymore. It's a tiny step to make the SUSE macros closer to their upstream counterparts.
Franck Bui
2019-02-21 18:00:10 +0000
c79891677bAccepting request 653628 from Base:System
Dominique Leuenberger
2018-12-10 11:22:13 +0000
7ac942a4ee- systemd-sysv-convert has been moved from /usr/sbin to /usr/lib/systemd
Franck Bui
2018-11-26 13:56:33 +0000
89a0103cb2Accepting request 611238 from Base:System
Dominique Leuenberger
2018-05-25 19:33:50 +0000
c6c149ba4c- remove confusing --user before --global Backport from 28d36da64a. This was spotted in bsc#1090785.
Franck Bui
2018-05-22 12:56:47 +0000
03ebeca141Accepting request 576778 from Base:System
Dominique Leuenberger
2018-02-16 20:26:30 +0000
3adc1714da- Fix %systemd_post(): it's never called during package removal Also make it useful by restoring its original implementation.
Franck Bui
2018-02-14 14:07:02 +0000
1f25658464- Import more definitions from upstream (v237)
Franck Bui
2018-02-12 16:58:33 +0000
633172ab0fAccepting request 568183 from Base:System
Dominique Leuenberger
2018-01-26 12:34:22 +0000