In case extension is removed, units in /etc/systemd/system/ are left behind
Posted: Mon Jan 22, 2018 1:36 am
Hi everybody!
Here is the situation:
1. Extension is installed and is working fine:
2. However, after removal files in /etc/systemd/system/ are left behind:
3. Services are in 'enabled' but 'failed' status, so they are generating errors on every reboot because magicspam-daemon and magicspam-milter failed to start, because there is no magicspam installed.
It is actual for systemd-based, all is removed properly from /etc/init.d/.
Here is the situation:
1. Extension is installed and is working fine:
Code: Select all
# plesk bin extension --enable magicspam
The extension's status was successfully updated.
# service magicspam-daemon status
Loaded: loaded (/etc/systemd/system/magicspam-daemon.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2018-01-22 13:26:00 +07; 1h 26min ago
# service magicspam-milter status
Loaded: loaded (/etc/systemd/system/magicspam-milter.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2018-01-22 13:26:02 +07; 1h 26min ago
Code: Select all
# plesk bin extension --uninstall magicspam
The extension was successfully removed.
# ls -l /etc/systemd/system/magicspam*
-rw-r--r-- 1 root root 272 Nov 16 00:42 /etc/systemd/system/magicspam-daemon.service
-rw-r--r-- 1 root root 288 Nov 16 00:42 /etc/systemd/system/magicspam-milter.service
It is actual for systemd-based, all is removed properly from /etc/init.d/.