Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 497464

Summary: net-im/openfire should install a systemd unit file
Product: Gentoo Linux Reporter: Michael Jones <gentoo>
Component: Current packagesAssignee: Sergei Trofimovich (RETIRED) <slyfox>
Status: RESOLVED FIXED    
Severity: normal CC: net-im, systemd
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 448882    

Description Michael Jones 2014-01-07 23:57:07 UTC
The openfire ebuild should provide a systemd unit file, say /usr/lib/systemd/system/openfire.service.

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2014-01-11 11:46:44 UTC
+*openfire-3.8.2-r1 (11 Jan 2014)
+
+  11 Jan 2014; Pacho Ramos <pacho@gentoo.org> +files/openfire.service,
+  +openfire-3.8.2-r1.ebuild:
+  Add unit file (#497464)
+
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2014-01-11 15:54:52 UTC
(In reply to Pacho Ramos from comment #1)
> +*openfire-3.8.2-r1 (11 Jan 2014)
> +
> +  11 Jan 2014; Pacho Ramos <pacho@gentoo.org> +files/openfire.service,
> +  +openfire-3.8.2-r1.ebuild:
> +  Add unit file (#497464)
> +

It might be not enough to make thing run.
init script has such a workaround:
    [ -d /var/run/jabber ] || mkdir /var/run/jabber
I guess it also needs a tmpfiles.d bit (bug #423367)
Comment 3 Pacho Ramos gentoo-dev 2014-01-11 16:09:13 UTC
tmpfiles should handle it indeed, anyway, I though /var/run/jabber was only needed for pidfile and, in that case, it is not needed for service file since we don't need to run "--background" like done in init.d script
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2014-01-11 17:27:19 UTC
(In reply to Pacho Ramos from comment #3)
> tmpfiles should handle it indeed, anyway, I though /var/run/jabber was only
> needed for pidfile and, in that case, it is not needed for service file
> since we don't need to run "--background" like done in init.d script

Oh, right. It's only pid file there. Sorry for the noise.
Comment 5 Pacho Ramos gentoo-dev 2014-01-11 20:15:13 UTC
No problem :)