From 969cb24400d9a598560e069af9caabaf82021317 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Mon, 10 Apr 2023 09:38:36 +0800 Subject: [PATCH] add ExecStartPost=/bin/sleep 0.1 to systemd service files --- conf/client.conf | 2 +- conf/storage.conf | 6 +++--- conf/tracker.conf | 2 +- systemd/fdfs_storaged.service | 1 + systemd/fdfs_trackerd.service | 1 + 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/conf/client.conf b/conf/client.conf index cdb84c8..acf9fe6 100644 --- a/conf/client.conf +++ b/conf/client.conf @@ -8,7 +8,7 @@ connect_timeout = 5 network_timeout = 60 # the base path to store log files -base_path = /home/yuqing/fastdfs +base_path = /opt/fastdfs # tracker_server can ocur more than once for multi tracker servers. # the value format of tracker_server is "HOST:PORT", diff --git a/conf/storage.conf b/conf/storage.conf index 8ce66fd..f86f296 100644 --- a/conf/storage.conf +++ b/conf/storage.conf @@ -46,7 +46,7 @@ stat_report_interval = 60 # NOTE: the binlog files maybe are large, make sure # the base path has enough disk space, # eg. the disk free space should > 50GB -base_path = /home/yuqing/fastdfs +base_path = /opt/fastdfs # max concurrent connections the server supported, # you should set this parameter larger, eg. 10240 @@ -126,8 +126,8 @@ store_path_count = 1 # the store paths' order is very important, don't mess up!!! # the base_path should be independent (different) of the store paths -store_path0 = /home/yuqing/fastdfs -#store_path1 = /home/yuqing/fastdfs2 +store_path0 = /opt/fastdfs +#store_path1 = /opt/fastdfs2 # subdir_count * subdir_count directories will be auto created under each # store_path (disk), value can be 1 to 256, default value is 256 diff --git a/conf/tracker.conf b/conf/tracker.conf index 6bf3f4b..4fea0e3 100644 --- a/conf/tracker.conf +++ b/conf/tracker.conf @@ -20,7 +20,7 @@ connect_timeout = 5 network_timeout = 60 # the base path to store data and log files -base_path = /home/yuqing/fastdfs +base_path = /opt/fastdfs # max concurrent connections this server support # you should set this parameter larger, eg. 10240 diff --git a/systemd/fdfs_storaged.service b/systemd/fdfs_storaged.service index 30b2d69..10a412c 100644 --- a/systemd/fdfs_storaged.service +++ b/systemd/fdfs_storaged.service @@ -6,6 +6,7 @@ After=network-online.target Type=forking PIDFile=/opt/fastdfs/data/fdfs_storaged.pid ExecStart=/usr/bin/fdfs_storaged /etc/fdfs/storage.conf start +ExecStartPost=/bin/sleep 0.1 ExecStop=/usr/bin/fdfs_storaged /etc/fdfs/storage.conf stop # No artificial start/stop timeout diff --git a/systemd/fdfs_trackerd.service b/systemd/fdfs_trackerd.service index c7435a2..d74a6a2 100644 --- a/systemd/fdfs_trackerd.service +++ b/systemd/fdfs_trackerd.service @@ -6,6 +6,7 @@ After=network-online.target Type=forking PIDFile=/opt/fastdfs/data/fdfs_trackerd.pid ExecStart=/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start +ExecStartPost=/bin/sleep 0.1 ExecStop=/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf stop # No artificial start/stop timeout