← Back to team overview

touch-packages team mailing list archive

[Bug 1532553] Re: /etc/halt.local has become /usr/sbin/halt.local

 

fwiw, halt-local.service was hooked up in final.target and contains the
following:

[Unit]
Description=/usr/sbin/halt.local Compatibility
ConditionFileIsExecutable=/usr/sbin/halt.local
DefaultDependencies=no
After=shutdown.target
Before=final.target

To apply that to my /etc/systemd/system/foo.service example:


[Unit]
Description=Run service on shutdown
DefaultDependencies=no
After=shutdown.target
Before=final.target

[Service]
ExecStart=/bin/true

[Install]
WantedBy=final.target

Then run "systemctl enable foo.service" and you should be set.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1532553

Title:
  /etc/halt.local has become /usr/sbin/halt.local

Status in systemd package in Ubuntu:
  Fix Committed

Bug description:
  Ubuntu 15.10, amd64
  systemd-225-1ubuntu9

  /etc/halt.local seems to have moved to /usr/sbin/halt.local which IMO
  is bad for a couple of reasons.

  1) This is not where it's supposed to be
  2) Locally modified (non-dpkg managed) scripts under /usr is bad

  I have not been able to find anywhere documenting this as a decided
  change, so it seems like a bug to me.

  Please let me know if you need more info from me

  /Thomas

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1532553/+subscriptions