Article 5RQ72 systemd service deleted multi-user.target

systemd service deleted multi-user.target

by
Johannes33
from LinuxQuestions.org on (#5RQ72)
Hi,
I have built a service that I want to run late in the boot process so it does not get overridden by other services. the problem is that it does not run. Looking at the log I get the error message:
Quote:
% journalctl -b

nov 09 08:13:18 johlux systemd[1]: multi-user.target: Job hdparm.service/start deleted to break ordering cycle starting with multi-user.target/start
I placed the service in Quote:
/etc/systemd/system/hdparm.service
the service exist also in (I do not know why)
Quote:
/etc/systemd/system/multi-user.target.wants/hdparm.service
I do not think I put it there.

the service looks like this:

Quote:
[Unit]
Description=hdparm sleep
After=tlp.service

[Service]
Type=oneshot
DeviceAllow=/dev/sda
DeviceAllow=/dev/sdb
ExecStart=/usr/bin/hdparm -q -S 30 -y /dev/sda
ExecStart=/usr/bin/hdparm -q -S 30 -y /dev/sdb

[Install]
WantedBy=multi-user.target
the "After=tlp.service" was because I looked at the services with
Quote:
systemd-analyze dot | dot -Tpng -o boot.png
to see a late service and chose one that was late.

So now I wonder what the error message means and what I can do to make the service work?latest?d=yIl2AUoC8zA latest?i=8gXCCiQVFtY:z7wbjOi3hSQ:F7zBnMy latest?i=8gXCCiQVFtY:z7wbjOi3hSQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=8gXCCiQVFtY:z7wbjOi3hSQ:gIN9vFw8gXCCiQVFtY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments