Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#30009 - [systemd-arch-units] [libvirt] systemd .service files for libvirtd and libvirt-guests

Attached to Project: Community Packages
Opened by Vasil Yonkov (spirtbrat) - Friday, 25 May 2012, 09:06 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 28 May 2012, 16:31 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Dave Reisner (falconindy)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

libvirt can generate systemd .service files for libvirtd and libvirt-guests. This can be achieved with . Please include them in the package.
I attached the 2 files generated on my machine. A quick look suggests suggests that some changes have to be made so they can work in a ArchLinx environment:

- have to be moved from /lib/systemd/system/ to /usr/lib/systemd/system/
- in libvirtd.service, section [Service], 'EnvironmentFile=' should point to "/etc/conf.d/libvirtd" instead of "-/etc/sysconfig/libvirtd"
- libvirt-guests.service needs its whole [Service] section paths adjusted to "/etc/conf.d/libvirtd-guests" and "/etc/rc.d/libvirtd-guests" for 'EnvironmentFile=' and 'ExecStart/Stop' accordingly.


Additional info:
* package version(s)

libvirt 0.9.12-3

* config and/or log files etc.


Steps to reproduce:

Append "--with-init-script=systemd" to the './configure' line in the PKGBUILD of libvirt and do 'makepkg'.
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 28 May 2012, 16:31 GMT
Reason for closing:  Fixed
Additional comments about closing:  please try -7 and -8
Comment by Sergej Pupykin (sergej) - Monday, 28 May 2012, 07:35 GMT
Should not they be included into systemd-arch-units ?
Comment by Vasil Yonkov (spirtbrat) - Monday, 28 May 2012, 11:52 GMT
'systemd-arch-units' seems to be a temporary repo for everything systemd,
not yet supported upstream. At least when it comes to .service files.
Their github page [1], at "HOW TO CONTRIBUTE" section, says:

"Once it's accepted and released by upstream, open a feature request
on Arch's Flyspray to have it included in the repo package."

Also they have commits like these:

'acpid: delete, now in community'
'remove mdadm/xinetd - moved to core/extra'

The .service files should be included in the 'libvirt' package.


[1] https://github.com/falconindy/systemd-arch-units
Comment by Vasil Yonkov (spirtbrat) - Monday, 28 May 2012, 15:50 GMT
  • Field changed: Percent Complete (100% → 0%)
Those generated .service files will _not_ work in an ArchLinux environment _directly_. They have to be manually adjusted as explained in the Details section of this bug report.
Comment by Dave Reisner (falconindy) - Monday, 28 May 2012, 15:53 GMT
This is a goddamn mess.

- libvirt 0.9.12-4 was in community-testing. I've nuked this because it doesn't make any sense to keep around now that you've pushed 0.9.12-6 into community.
- 0.9.12-6 causes a file conflict with systemd-arch-units. Additionally, you missed a tmpfiles.d fragment that libvirt needs.
- systemd-arch-units is in community-testing with changes that I _cannot_ push to community until systemd moves to core.

I've nuked the libvirt files from the systemd-arch-units package and pushed a new one to community-testing. I suggest you rebuild a -7 without the files and push it to community, and then figure out what to do with a -8 for community-testing.
Comment by Sergej Pupykin (sergej) - Monday, 28 May 2012, 16:10 GMT
Damn, I forget about testing.

Rebuilding it now.

Loading...