Bug 737168

Summary: Provide native systemd service file
Product: [Fedora] Fedora Reporter: Jóhann B. Guðmundsson <johannbg>
Component: apgAssignee: Kevin Fenzi <kevin>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: kevin, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-29 00:45:27 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On:    
Bug Blocks: 713562    
Attachments:
Description Flags
apgd socket
none
apgd service
none
Agpd service none

Description Jóhann B. Guðmundsson 2011-09-09 15:12:46 EDT
Description of problem:

Let's get the ball rolling on this one...

http://fedoraproject.org/wiki/Features/SysVtoSystemd

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Jóhann B. Guðmundsson 2011-09-09 15:13:20 EDT
Created attachment 522389 [details]
apgd socket
Comment 2 Jóhann B. Guðmundsson 2011-09-09 15:13:43 EDT
Created attachment 522390 [details]
apgd service
Comment 3 Jóhann B. Guðmundsson 2011-09-09 15:14:27 EDT
Passes simple telnet test...

[root@valhalla system]# systemctl start apgd.socket 
[root@valhalla system]# systemctl status apgd.socket 
apgd.socket - Authd Activation Socket
	  Loaded: loaded (/lib/systemd/system/apgd.socket)
	  Active: active (listening) since Fri, 09 Sep 2011 19:10:05 +0000; 3s ago
	Accepted: 0; Connected: 0
	  CGroup: name=systemd:/system/apgd.socket
[root@valhalla system]# telnet localhost 129
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Hibdeot. (Hib-de-ot-PERIOD)
Sickwegs (Sick-wegs)
cozunet1 (coz-un-et-ONE)
ottIfsUn (ott-Ifs-Un)
PretFink (Pret-Fink)
RekZuor6 (Rek-Zu-or-SIX)
Connection closed by foreign host.

And note there is still a (tight) window to have this in F16
Comment 4 Jóhann B. Guðmundsson 2011-09-10 10:17:43 EDT
Created attachment 522525 [details]
Agpd service
Comment 5 Jóhann B. Guðmundsson 2011-09-10 10:18:23 EDT
Once package and shipped your package should no longer have to depend on xinetd

https://fedoraproject.org/wiki/Packaging:Guidelines:Systemd
https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd
Comment 6 Jóhann B. Guðmundsson 2011-09-14 20:02:54 EDT
If I can recall correctly you ping me about this one not working where you mentioned that this was not working. 

I'm wondering if you are hitting a bug in systemd .35 where the socket out put is broken for in.inetd daemons 

You can add StandardOutput=socket to the service file to see if you are encountering that bug.

Node that this option is only needed since this only affects .35 ( not 34 or earlier ) and will be fixed in 36
Comment 7 Jóhann B. Guðmundsson 2011-09-14 20:05:47 EDT
Time is late and my english is starting to suck more then usual basically you should only add StandardOutput=socket to the service to test if you are bit by the .35 bug.

No need to add it otherwize since that bug will be fixed in .36 and only affects .35 release
Comment 8 Kevin Fenzi 2011-09-14 20:19:32 EDT
Yeah, it's .35, so that could be the issue. ;) 

Will give that a try, thanks!
Comment 9 Kevin Fenzi 2012-01-29 00:45:27 EST
Sorry for the long delay here. Ran into two anoying problems: 

1) didn't realize that the service file needed to be apg@.service instead of apg.service. 

2) apgd needs /dev/random, so in my testing I kept running into it running out of entropy and hanging. 

Anyhow, all fixed and commited to rawhide. Thanks.