blob: b4ded4f72adfbe91d6666f84d872d0b9423d179e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/controller/seafile-controller.c b/controller/seafile-controller.c
index 9439bcd..116c77e 100644
--- a/controller/seafile-controller.c
+++ b/controller/seafile-controller.c
@@ -575,7 +575,7 @@ stop_ccnet_server ()
static void
init_pidfile_path (SeafileController *ctl)
{
- char *pid_dir = g_build_filename (topdir, "pids", NULL);
+ char *pid_dir = g_build_filename (ctl->seafile_dir, "pids", NULL);
if (!g_file_test(pid_dir, G_FILE_TEST_EXISTS)) {
if (g_mkdir(pid_dir, 0777) < 0) {
seaf_warning("failed to create pid dir %s: %s", pid_dir, strerror(errno));
|