Univention Bugzilla – Bug 52603
Replace init.d with systemd
Last modified: 2021-11-29 17:19:32 CET
In UCS 5 several init.d scripts has been removed. We need to migrate the calls to use systemctl for start/stop/restarting services like univention-directory-listener, univention-directory-notifier, univention-dhcp /isc-dhcp. Affected scripts: ucs-school-metapackage/debian/ucs-school-central-slave.postinst ucs-school-metapackage/debian/ucs-school-master.postinst ucs-school-metapackage/debian/ucs-school-singlemaster.postinst ucs-school-metapackage/debian/ucs-school-slave.postinst ucs-school-netlogon-user-logonscripts/debian/ucs-school-netlogon-user-logonscripts.postinst ucs-school-netlogon-user-logonscripts/debian/ucs-school-netlogon-user-logonscripts.univention-config-registry-variables ucs-school-old-homedirs/debian/ucs-school-old-homedirs.postinst ucs-school-old-sharedirs/debian/ucs-school-old-sharedirs.postinst ucs-school-s4-branch-site/debian/ucs-school-s4-branch-site.postinst ucs-test-ucsschool/90_ucsschool/16_s4_slave_automatic_srv_record.py doc/manual/proxy-de.xml
I have made the changes in the listed files. I Also found that we can profit from the service management by systemD in ucs-school-lib/python/models/utils.py There is no need to check the process list for the univention-directory-notifier because systemD does this for us. Have also applied changes to this file.
Sebastians fixes were: ucs-test-ucsschool (7.0.1) 6faf4c83e1ba | Bug #52603: use systemctl to restart UDL in ucs-test-ucsschool ucs-school-s4-branch-site (8.0.1) ebb17659ebee | Bug #52603: use systemctl to restart UDL in ucs-school-s4-branch-site ucs-school-old-sharedirs (15.0.1) ad72c52703da | Bug #52603: use systemctl to restart UDL in ucs-school-old-sharedirs ucs-school-old-homedirs (15.0.1) cd62abd9c0bc | Bug #52603: use systemctl to restart UDL in ucs-school-old-homedirs ucs-school-netlogon-user-logonscripts (16.0.1) 130c76737317 | Bug #52603: use systemctl to restart UDL in ucs-school-netlogon ucs-school-metapackage (13.0.2) cf1d915f1268 | Bug #52603: use systemctl to restart UDL in ucs-school-metapackage ucs-school-lib (13.0.2) 207a03519ca3 | Bug #52603: use systemctl to manage UDN in ucs-school-lib/python/models/utils.py NONE a4c721515ca2 | Bug #52603: update restart command of univention-dhcp in doc/manual/proxy-de.xml
Some additional things were necessary: b585777e1a8c | fixup! Bug #52603: replace init.d with systemd b6d53d5620b3 | Bug #52603: replace init.d with systemd OK: the rest
UCS@school 5.0 v1 has been released. https://docs.software-univention.de/release-notes-ucsschool-5.0v1-de.html If this error occurs again, please clone this bug.