--- a/main/trunk/platform/unix/debian/prerm
+++ b/main/trunk/platform/unix/debian/prerm
@@ -74,12 +74,12 @@
 if [ -x /usr/bin/systemctl ] || [ -x /usr/sbin/systemctl ]; then
    systemctl stop rxapid.service
    rm /etc/systemd/system/rxapid.service
+   systemctl --system daemon-reload
 else
    if [ -e /etc/init.d/rxapid ]; then
       /etc/init.d/rxapid stop
    fi
    rm -f /etc/init.d/rxapid
    update-rc.d rxapid remove
-   rm -f /etc/ld.so.conf.d/ooRexx.conf
 fi