[systemd-devel] Q: asymmetry of ExecStop and ExecStart
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Wed Apr 14 10:34:54 UTC 2021
Hi!
I have two services defined, one using ExecStart only, the other ExecStop only.
Then I discovered some asymmetry:
systemd is still starting the service with the ExecStop only, while the one with the ExecStart only never is stopped.
Is that intended, or do I have some configuration error in the ExecStart only service?
The units look like this:
# /usr/lib/systemd/system/dellcd-log-start.service
[Unit]
Description=Log Start on Dell LCD
Documentation=man:dellcd(1)
DefaultDependencies=no
After=local-fs.target
Before=sysinit.target
Requires=local-fs.target
ConditionPathExists=/usr/bin/...
[Service]
Type=oneshot
TimeoutSec=10
ExecStart=/usr/bin/...
[Install]
WantedBy=sysinit.target
# /usr/lib/systemd/system/dellcd-log-stop.service
[Unit]
Description=Log Stop on Dell LCD
Documentation=man:dellcd(1)
DefaultDependencies=no
After=default.target
Requires=local-fs.target
ConditionPathExists=/usr/bin/...
[Service]
Type=oneshot
TimeoutSec=5
RemainAfterExit=yes
ExecStop=/usr/bin/...
[Install]
WantedBy=default.target
---
Regards,
Ulrich
More information about the systemd-devel
mailing list