Bug 1050845

Summary: cups-lpd@.service: Unit name cups-lpd@.service is missing the instance name.
Product: [openSUSE] openSUSE Tumbleweed Reporter: Bin Liu <bliu>
Component: OtherAssignee: Johannes Meixner <jsmeix>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: antoine.belvire, bingmybong, per, ro, sebix+novell.com, tchvatal
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bin Liu 2017-07-27 02:51:23 UTC
cups-2.2.3-1.1.x86_64 ...............................................................................................................................................................[done]
Additional rpm output:
Failed to try-restart cups-lpd@.service: Unit name cups-lpd@.service is missing the instance name.
See system logs and 'systemctl status cups-lpd@.service' for details.

# cat /etc/issue
Welcome to openSUSE Tumbleweed 20170725 - Kernel \r (\l).

ens3: \4{ens3} \6{ens3}


update repo: http://download.opensuse.org/repositories/openSUSE:/Factory:/Update/standard/

please help to assign to the right person
Comment 1 Ruediger Oertel 2018-05-14 15:24:17 UTC
cups-lpd@.service needs to be removed from the list in pre/post/preun/postun
Comment 2 Per Jessen 2018-08-18 09:12:51 UTC
I have just seen the same whilst updating a Leap15 installation:

( 76/110) Installing: cups-2.2.7-lp150.2.3.1.x86_64 ..................[done]
Additional rpm output:
Failed to try-restart cups-lpd@.service: Unit name cups-lpd@.service is missing the instance name.
See system logs and 'systemctl status cups-lpd@.service' for details.
Comment 3 Dr. Werner Fink 2019-11-27 12:01:44 UTC
*** Bug 1038328 has been marked as a duplicate of this bug. ***
Comment 4 Dr. Werner Fink 2019-11-27 12:04:38 UTC
Fri Sep 14 05:30:55 UTC 2018 - antoine.belvire@opensuse.org
- Fix warning message upon update (boo#1050845): Remove template
  service cups-lpd@ from service_* macro in scriptlets.
Comment 5 Johannes Meixner 2019-11-27 14:03:30 UTC
By the way:

I am not at all a systemd unit file handling expert
but I wonder why the systemd unit file "cups.path"
is not listed in the service_* macros?

https://en.opensuse.org/openSUSE:Systemd_packaging_guidelines
indicates that systemd unit files like "elsewhere.path"
should normally be listed in the service_* macros
but it does not explicitly tell that instantiated service files
like "foo@.service" must not be listed in the service_* macros.
Comment 6 Johannes Meixner 2019-11-28 14:23:26 UTC
*** Bug 1045521 has been marked as a duplicate of this bug. ***
Comment 7 Johannes Meixner 2024-01-24 09:06:41 UTC
For the log:
The issue had been fixed (on 2018-09-19) via
https://build.opensuse.org/request/show/636236