happyfish100 / fastdfs

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. Wechat/Weixin public account (Chinese Language): fastdfs
GNU General Public License v3.0
8.99k stars 1.98k forks source link

systemd必须以固定格式结尾 #576

Closed jschunlei closed 1 year ago

jschunlei commented 2 years ago

留个脚印,感觉有人会遇到一样的问题. fdfs_trackerd.service 代码中写死PIDFile必须以 /data/fdfs_trackerd.pid结尾,示例PIDFile=XXX路径/data/fdfs_trackerd.pid 文件tracker/fdfs_trackerd.c:

    snprintf(pidFilename, sizeof(pidFilename),
        "%s/data/fdfs_trackerd.pid", g_fdfs_base_path);

fdfs_storaged.service 代码中写死PIDFile必须以 /data/fdfs_storaged.pid结尾,示例PIDFile=XXX路径/data/fdfs_storaged.pid 文件storage/fdfs_storaged.c:

    snprintf(pidFilename, sizeof(pidFilename),
        "%s/data/fdfs_storaged.pid", g_fdfs_base_path);
happyfish100 commented 1 year ago

感谢反馈,已整理到 wiki中。