Bug 693289 - Service with multiple Sockets fails to start
Summary: Service with multiple Sockets fails to start
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 15
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-04 08:26 UTC by Albert Strasheim
Modified: 2011-04-09 02:12 UTC (History)
7 users (show)

Fixed In Version: systemd-24-1.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-06 00:26:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.