Package: nbd-server
Version: 2.9.8-1
Severity: normal
Tags: patch

Hi,

upon start, nbd-server creates as pid file with name
/var/run/server.pid, while the init.d script expects
/var/run/nbd-server.pid. The latter is used in documentation and
comments as well, and IMO saner anyway. 

The attached patch changes the default value of the pid file name.

Cheers, Til
=== nbd-server.c
==================================================================
--- nbd-server.c        (revision 2)
+++ nbd-server.c        (local)
@@ -1571,9 +1571,9 @@
        }
        if(!*pidftemplate) {
                if(serve) {
-                       strncpy(pidftemplate, "/var/run/server.%d.pid", 255);
+                       strncpy(pidftemplate, "/var/run/nbd-server.%d.pid", 
255);
                } else {
-                       strncpy(pidftemplate, "/var/run/server.pid", 255);
+                       strncpy(pidftemplate, "/var/run/nbd-server.pid", 255);
                }
        }
        snprintf(pidfname, 255, pidftemplate, serve ? serve->port : 0);

Reply via email to