<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Restarting socket units behaves differently from stop+start"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=75185">75185</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Restarting socket units behaves differently from stop+start
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>david@davidstrauss.net
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Restart should, generally, do the same thing as stop+start, but it doesn't for
sockets. This is for systemd v208, but I don't think anything in master would
have substantially changed this particular behavior.

[root@david-onebox-f19 system]# systemctl status -n0
php_fpm_0af635c858dc467caeed99ec2c263ec9.socket
php_fpm_0af635c858dc467caeed99ec2c263ec9.service 
php_fpm_0af635c858dc467caeed99ec2c263ec9.socket
   Loaded: loaded
(/etc/systemd/system/php_fpm_0af635c858dc467caeed99ec2c263ec9.socket; enabled)
   Active: active (listening) since Fri 2014-02-14 02:15:14 UTC; 5 days ago
   Listen: /srv/bindings/0af635c858dc467caeed99ec2c263ec9/run/php-fpm.sock
(Stream)


php_fpm_0af635c858dc467caeed99ec2c263ec9.service - PHP-FPM server for
site=7025a5db-f6ee-4b2f-bfbb-47e421df93e8 environment=dev
binding=0af635c858dc467caeed99ec2c263ec9
   Loaded: loaded
(/etc/systemd/system/php_fpm_0af635c858dc467caeed99ec2c263ec9.service;
disabled)
   Active: inactive (dead)

[root@david-onebox-f19 system]# systemctl restart
php_fpm_0af635c858dc467caeed99ec2c263ec9.socket
[root@david-onebox-f19 system]# systemctl status -n0
php_fpm_0af635c858dc467caeed99ec2c263ec9.socket
php_fpm_0af635c858dc467caeed99ec2c263ec9.service 
php_fpm_0af635c858dc467caeed99ec2c263ec9.socket
   Loaded: loaded
(/etc/systemd/system/php_fpm_0af635c858dc467caeed99ec2c263ec9.socket; enabled)
   Active: active (running) since Wed 2014-02-19 08:00:22 UTC; 1s ago
   Listen: /srv/bindings/0af635c858dc467caeed99ec2c263ec9/run/php-fpm.sock
(Stream)


php_fpm_0af635c858dc467caeed99ec2c263ec9.service - PHP-FPM server for
site=7025a5db-f6ee-4b2f-bfbb-47e421df93e8 environment=dev
binding=0af635c858dc467caeed99ec2c263ec9
   Loaded: loaded
(/etc/systemd/system/php_fpm_0af635c858dc467caeed99ec2c263ec9.service;
disabled)
   Active: active (running) since Wed 2014-02-19 08:00:23 UTC; 882ms ago
  Process: 21081 ExecStartPre=/srv/bin/ensure_valhalla_symlink.py
0af635c858dc467caeed99ec2c263ec9 code/sites/default/files (code=exited,
status=0/SUCCESS)
 Main PID: 21084 (php-fpm)
   CGroup: /system.slice/php_fpm_0af635c858dc467caeed99ec2c263ec9.service
           └─21084 /opt/php-5.3/php-fpm
--fpm-config=/srv/bindings/0af635c858dc467caeed99ec2c263ec9/php-fpm.conf
--php-ini=/srv/bindings/0af635c858dc467caeed99ec2c263ec9/php...

[root@david-onebox-f19 system]# systemctl stop
php_fpm_0af635c858dc467caeed99ec2c263ec9.socket
php_fpm_0af635c858dc467caeed99ec2c263ec9.service 
You have new mail in /var/spool/mail/root
[root@david-onebox-f19 system]# systemctl start
php_fpm_0af635c858dc467caeed99ec2c263ec9.socket
[root@david-onebox-f19 system]# systemctl status -n0
php_fpm_0af635c858dc467caeed99ec2c263ec9.socket
php_fpm_0af635c858dc467caeed99ec2c263ec9.service 
php_fpm_0af635c858dc467caeed99ec2c263ec9.socket
   Loaded: loaded
(/etc/systemd/system/php_fpm_0af635c858dc467caeed99ec2c263ec9.socket; enabled)
   Active: active (listening) since Wed 2014-02-19 08:02:25 UTC; 2s ago
   Listen: /srv/bindings/0af635c858dc467caeed99ec2c263ec9/run/php-fpm.sock
(Stream)


php_fpm_0af635c858dc467caeed99ec2c263ec9.service - PHP-FPM server for
site=7025a5db-f6ee-4b2f-bfbb-47e421df93e8 environment=dev
binding=0af635c858dc467caeed99ec2c263ec9
   Loaded: loaded
(/etc/systemd/system/php_fpm_0af635c858dc467caeed99ec2c263ec9.service;
disabled)
   Active: inactive (dead) since Wed 2014-02-19 08:02:14 UTC; 13s ago
  Process: 21084 ExecStart=/opt/php-5.3/php-fpm
--fpm-config=/srv/bindings/0af635c858dc467caeed99ec2c263ec9/php-fpm.conf
--php-ini=/srv/bindings/0af635c858dc467caeed99ec2c263ec9/php53.ini
(code=exited, status=0/SUCCESS)
  Process: 21081 ExecStartPre=/srv/bin/ensure_valhalla_symlink.py
0af635c858dc467caeed99ec2c263ec9 code/sites/default/files (code=exited,
status=0/SUCCESS)
 Main PID: 21084 (code=exited, status=0/SUCCESS)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>