Postgresql service unit name wrongly cutted
Bug #1746871 reported by
Robert Sander
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
needrestart (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Whenever needrestart detects that Postgresql needs a restart, it wrongly cuts the service unit name to "5-main.service" and is therefor not able to restart it.
The full service unit name is "postgresql@
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: needrestart 2.6-1
ProcVersionSign
Uname: Linux 4.13.0-32-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
CurrentDesktop: XFCE
Date: Fri Feb 2 08:04:39 2018
PackageArchitec
SourcePackage: needrestart
UpgradeStatus: Upgraded to xenial on 2016-08-19 (531 days ago)
To post a comment you must log in.
This also affects other services containing a dot in the name, like php7.0-fpm.service, which gets truncated to "0-fpm.service" which obviously can't be found.
This has been fixed in needrestart 2.7, see https:/ /github. com/liske/ needrestart/ pull/19.
As the fix seems trivial to me maybe this can be fixed in ubuntu Xenial version of needrestart, as I'm sure many people face this bug.