1. 27 8月, 2019 1 次提交
    • D
      systemd: honour $runstatedir in socket unit files · cc5311e7
      Daniel P. Berrangé 提交于
      If a systemd socket uses /var/run in its path, systemd prints a warning
      at runtime
      
      [   15.139976] systemd[1]: /usr/lib/systemd/system/virtlockd.socket:5:
        ListenStream= references a path below legacy directory /var/run/,
        updating /var/run/libvirt/virtlockd-sock → /run/libvirt/virtlockd-sock;
        please update the unit file accordingly.
      
      This minimal change updates the socket unit files to honour the
      $runstatedir path.
      
      There's no functional change by default yet since both expressions
      expand to the same value.
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      cc5311e7
  2. 21 5月, 2019 1 次提交
  3. 04 2月, 2017 1 次提交
  4. 10 12月, 2013 1 次提交
    • M
      virtlockd: improve systemd units · 1163fa36
      Michael Chapman 提交于
      - Pass VIRTLOCKD_ARGS through to virtlockd.
      
      - Use SIGUSR1, not SIGHUP, in ExecReload. At present, virtlockd only
        responds to the former.
      
      - Have "systemctl enable virtlockd.service" enable virtlockd.socket,
        rather than throw an error.
      
      - Make virtlockd.socket wanted by sockets.target, rather than
        multi-user.target. This is consistent with other socket units in
        Fedora, and it ensures that the socket is available before libvirtd is
        started.
      Signed-off-by: NMichael Chapman <mike@very.puzzling.org>
      1163fa36
  5. 05 6月, 2013 1 次提交
  6. 07 1月, 2013 1 次提交
    • E
      build: properly substitute virtlockd.socket · cb854b8f
      Eric Blake 提交于
      virtlockd.service could be installed to a configurable root,
      but virtlockd.socket was hardcoded to installation into a
      distro.
      
      * src/Makefile.am (virtlockd.service, virtlockd.socket): Drop
      unused substitutions.
      * src/locking/virtlockd.socket.in (ListenStream): Don't hard-code
      /var.
      cb854b8f
  7. 13 12月, 2012 1 次提交
    • D
      Enable systemd socket activation with virtlockd · 74c0353e
      Daniel P. Berrange 提交于
      This enhancement virtlockd so that it can receive a pre-opened
      UNIX domain socket from systemd at launch time, and adds the
      systemd service/socket unit files
      
      * daemon/libvirtd.service.in: Require virtlockd to be running
      * libvirt.spec.in: Add virtlockd systemd files
      * src/Makefile.am: Install systemd files
      * src/locking/lock_daemon.c: Support socket activation
      * src/locking/virtlockd.service.in, src/locking/virtlockd.socket.in:
        systemd unit files
      * src/rpc/virnetserverservice.c, src/rpc/virnetserverservice.h:
        Add virNetServerServiceNewFD() method
      * src/rpc/virnetsocket.c, src/rpc/virnetsocket.h: Add virNetSocketNewListenFD
        method
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      74c0353e