Bug 73177 - ExecStopPre does not seem to work
Summary: ExecStopPre does not seem to work
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-31 01:01 UTC by redneb
Modified: 2014-02-21 14:07 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
example of a service's unit file with ExecStopPre (141 bytes, text/plain)
2013-12-31 01:01 UTC, redneb
Details

Description redneb 2013-12-31 01:01:59 UTC
Created attachment 91354 [details]
example of a service's unit file with ExecStopPre

I created a unit file that includes an ExecStopPre field but systemd does not seem to support that field. Instead it gives the following error message:

Unknown lvalue 'ExecStopPre' in section 'Service'

Moreover, the documentation seems to be incosistent about it; systemd.service(5) contains some references to it but not a dedicated section for it.

I tried this with systemd-208.
Comment 1 Austin Foxley 2014-01-30 17:38:56 UTC
I hit this as well.

I checked the source in git (src/core/service.c) and see there never was support for an ExecStopPre. Perhaps an intended feature that hasn't been finished yet?
Comment 2 Lennart Poettering 2014-02-21 14:07:58 UTC
There is no ExecStopPre= for service units. Just use multiple ExecStop= instead.

The man page was broken indeed, it referenced this field at one place even though it does not exist. Sorry for the confusion. Fixed that now.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.