[Bug 1722801] Re: apport isn't started on new installs
Iain Lane
iain at orangesquash.org.uk
Wed Oct 11 21:36:02 UTC 2017
On Wed, Oct 11, 2017 at 09:17:53PM -0000, Brian Murray wrote:
> There is no apport.init in the debian directory by adding a symlink for
> that to etc/init.d/apport I was able to get a postinst with:
>
> # Automatically added by dh_installinit/10.7.2ubuntu2
> if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
> if [ -x "/etc/init.d/apport" ]; then
> update-rc.d apport defaults >/dev/null
> invoke-rc.d apport start || true
> fi
> fi
> # End automatically added section
Yeah, I think telling dh_installinit to do that with -o is similar to
this - from the manpage:
-o, --only-scripts
Only modify postinst/postrm/prerm scripts, do not actually install any init script, default files,
upstart job or systemd service file. May be useful if the file is shipped and/or installed by
upstream in a way that doesn't make it easy to let dh_installinit find it.
That sounds like what we're doing here, and seems to generate the same
code in postinst/postrm.
--
Iain Lane [ iain at orangesquash.org.uk ]
Debian Developer [ laney at debian.org ]
Ubuntu Developer [ laney at ubuntu.com ]
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1722801
Title:
apport isn't started on new installs
Status in apport package in Ubuntu:
In Progress
Bug description:
with this version:
root at cosmic-terrapin:~# apt policy apport
apport:
Installed: 2.20.7-0ubuntu2
Candidate: 2.20.7-0ubuntu2
Version table:
*** 2.20.7-0ubuntu2 500
500 http://archive.ubuntu.com/ubuntu artful/main amd64 Packages
100 /var/lib/dpkg/status
the rc*.d links aren't installed
root at cosmic-terrapin:~# ls -l /etc/rc*.d/*apport*
ls: cannot access '/etc/rc*.d/*apport*': No such file or directory
which means that apport isn't started, so it doesn't set up the
core_pattern.
on zesty, it seems good
root at sharing-macaw:~# apt policy apport
apport:
Installed: 2.20.4-0ubuntu4.5
Candidate: 2.20.4-0ubuntu4.5
Version table:
*** 2.20.4-0ubuntu4.5 500
500 http://archive.ubuntu.com/ubuntu zesty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu zesty-security/main amd64 Packages
100 /var/lib/dpkg/status
2.20.4-0ubuntu4 500
500 http://archive.ubuntu.com/ubuntu zesty/main amd64 Packages
root at sharing-macaw:~# ls -l /etc/rc*.d/*apport*
lrwxrwxrwx 1 root root 16 Oct 11 13:17 /etc/rc2.d/S01apport -> ../init.d/apport
lrwxrwxrwx 1 root root 16 Oct 11 13:17 /etc/rc3.d/S01apport -> ../init.d/apport
lrwxrwxrwx 1 root root 16 Oct 11 13:17 /etc/rc4.d/S01apport -> ../init.d/apport
lrwxrwxrwx 1 root root 16 Oct 11 13:17 /etc/rc5.d/S01apport -> ../init.d/apport
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1722801/+subscriptions
More information about the foundations-bugs
mailing list