Bug 693289

Summary: Service with multiple Sockets fails to start
Product: [Fedora] Fedora Reporter: Albert Strasheim <fullung>
Component: systemdAssignee: Lennart Poettering <lpoetter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 15CC: fullung, johannbg, lpoetter, metherid, mschmidt, notting, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-24-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-06 00:26:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Albert Strasheim 2011-04-04 08:26:19 UTC
Description of problem:

I have the following units in /etc/systemd/system:

# cat sock1.socket
[Unit]
Description=sock1
[Socket]
ListenStream=20000
Backlog=128

# cat sock2.socket
[Unit]
Description=sock2
[Socket]
ListenStream=20001
Backlog=128
Service=foo.service

# cat foo.service
[Unit]
Description=Storage
Requires=sock1.socket sock2.socket
[Service]
Type=simple
ExecStart=/bin/env
StandardInput=null
StandardOutput=syslog
StandardError=inherit
#Sockets=sock1.socket
Sockets=sock1.socket sock2.socket

Starting foo.service fails.

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

systemd-22-1.fc15.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Create units in /etc/systemd/system.
2. systemctl --system daemon-reload
3. systemctl start sock1.socket
4. systemctl start sock2.socket
5. systemctl start foo.service
  
Actual results:

foo.service: main process exited, code=exited, status=202

Expected results:

Service should start.

Additional info:

It works fine if I use either sock1 or sock2, but not both.

Comment 1 Lennart Poettering 2011-04-06 00:26:36 UTC
Fixed in systemd git.

Thanks!

Comment 2 Fedora Update System 2011-04-06 20:15:04 UTC
systemd-24-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/systemd-24-1.fc15

Comment 3 Fedora Update System 2011-04-09 02:12:36 UTC
systemd-24-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.