Browse Source

Resolves: bug 224606
Description: Instance specific dirs should be in instance directory
Fix Description: Needed to reverse rundir and ds_get_server_name() when constructing the pidfile name.
Reviewed by: nhosoi (Thanks!)

Rich Megginson 19 years ago
parent
commit
e724dc43c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/admin/lib/dsalib_updown.c

+ 1 - 1
ldap/admin/lib/dsalib_updown.c

@@ -95,7 +95,7 @@ ds_get_updown_status()
       fprintf(stderr, "ds_get_updown_status: could not get install root\n");
         return(DS_SERVER_UNKNOWN);
     }
-    PR_snprintf(pid_file_name, BIG_LINE, "%s/%s.pid", ds_get_server_name(), rundir);
+    PR_snprintf(pid_file_name, BIG_LINE, "%s/%s.pid", rundir, ds_get_server_name());
     pidfile = fopen(pid_file_name, "r");
     if ( pidfile == NULL ) {
 /*