dh_systemd_enable not able to disable on upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
init-system-helpers (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
cloud-init has a service like
== /lib/systemd/
[Unit]
Description=Initial cloud-init job (metadata service crawler)
After=local-
Before=sshd.service sshd-keygen.service systemd-
Requires=
Wants=local-
[Service]
Type=oneshot
ExecStart=
RemainAfterExit=yes
TimeoutSec=0
[Install]
WantedBy=
=====
dh_systemd_enable created some files like:
/var/lib/
I dont think that was necessary as 'WantedBy' in my service file, but thats fine.
Later I came to want to change the 'WantedBy=' to be 'WantedBy=
When I installed the new deb, the files in /var/lib/
so the services where running on multi-user.target when I wanted to change that.
I've since added
override_
dh_systemd_
so i'm no longer enabling anything on install, but the files are still there.
The are deleted with --purge, but I need them correctly handled on upgrade.
Whats the proper way to get rid of them?
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: dh-systemd 1.28ubuntu2
ProcVersionSign
Uname: Linux 4.4.0-8-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Mar 3 20:56:22 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-07-23 (225 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150722.1)
PackageArchitec
SourcePackage: init-system-helpers
UpgradeStatus: No upgrade log present (probably fresh install)
Status changed to 'Confirmed' because the bug affects multiple users.