Bug 52603 - Replace init.d with systemd
Replace init.d with systemd
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 5.0
Other Linux
: P5 normal (vote)
: UCS@school 5.0 v1
Assigned To: Sebastian Lobinger
Florian Best
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-01-12 14:50 CET by Florian Best
Modified: 2021-11-29 17:19 CET (History)
0 users

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2021-01-12 14:50:59 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
Comment 1 Sebastian Lobinger univentionstaff 2021-01-19 11:03:25 CET
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.
Comment 3 Florian Best univentionstaff 2021-06-16 13:20:04 CEST
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
Comment 4 Florian Best univentionstaff 2021-06-16 23:31:38 CEST
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
Comment 5 Jürn Brodersen univentionstaff 2021-11-29 17:19:32 CET
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.