[systemd-bugs] [Bug 75185] New: Restarting socket units behaves differently from stop+start

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 19 00:03:42 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=75185

          Priority: medium
            Bug ID: 75185
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: Restarting socket units behaves differently from
                    stop+start
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: minor
    Classification: Unclassified
                OS: Linux (All)
          Reporter: david at davidstrauss.net
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

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 at 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 at david-onebox-f19 system]# systemctl restart
php_fpm_0af635c858dc467caeed99ec2c263ec9.socket
[root at 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 at david-onebox-f19 system]# systemctl stop
php_fpm_0af635c858dc467caeed99ec2c263ec9.socket
php_fpm_0af635c858dc467caeed99ec2c263ec9.service 
You have new mail in /var/spool/mail/root
[root at david-onebox-f19 system]# systemctl start
php_fpm_0af635c858dc467caeed99ec2c263ec9.socket
[root at 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)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140219/bfc65fad/attachment-0001.html>


More information about the systemd-bugs mailing list