add ExecStartPost=/bin/sleep 0.1 to systemd service files
parent
4f7715e378
commit
969cb24400
|
|
@ -8,7 +8,7 @@ connect_timeout = 5
|
||||||
network_timeout = 60
|
network_timeout = 60
|
||||||
|
|
||||||
# the base path to store log files
|
# 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.
|
# tracker_server can ocur more than once for multi tracker servers.
|
||||||
# the value format of tracker_server is "HOST:PORT",
|
# the value format of tracker_server is "HOST:PORT",
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ stat_report_interval = 60
|
||||||
# NOTE: the binlog files maybe are large, make sure
|
# NOTE: the binlog files maybe are large, make sure
|
||||||
# the base path has enough disk space,
|
# the base path has enough disk space,
|
||||||
# eg. the disk free space should > 50GB
|
# eg. the disk free space should > 50GB
|
||||||
base_path = /home/yuqing/fastdfs
|
base_path = /opt/fastdfs
|
||||||
|
|
||||||
# max concurrent connections the server supported,
|
# max concurrent connections the server supported,
|
||||||
# you should set this parameter larger, eg. 10240
|
# 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 store paths' order is very important, don't mess up!!!
|
||||||
# the base_path should be independent (different) of the store paths
|
# the base_path should be independent (different) of the store paths
|
||||||
|
|
||||||
store_path0 = /home/yuqing/fastdfs
|
store_path0 = /opt/fastdfs
|
||||||
#store_path1 = /home/yuqing/fastdfs2
|
#store_path1 = /opt/fastdfs2
|
||||||
|
|
||||||
# subdir_count * subdir_count directories will be auto created under each
|
# subdir_count * subdir_count directories will be auto created under each
|
||||||
# store_path (disk), value can be 1 to 256, default value is 256
|
# store_path (disk), value can be 1 to 256, default value is 256
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ connect_timeout = 5
|
||||||
network_timeout = 60
|
network_timeout = 60
|
||||||
|
|
||||||
# the base path to store data and log files
|
# the base path to store data and log files
|
||||||
base_path = /home/yuqing/fastdfs
|
base_path = /opt/fastdfs
|
||||||
|
|
||||||
# max concurrent connections this server support
|
# max concurrent connections this server support
|
||||||
# you should set this parameter larger, eg. 10240
|
# you should set this parameter larger, eg. 10240
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ After=network-online.target
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/opt/fastdfs/data/fdfs_storaged.pid
|
PIDFile=/opt/fastdfs/data/fdfs_storaged.pid
|
||||||
ExecStart=/usr/bin/fdfs_storaged /etc/fdfs/storage.conf start
|
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
|
ExecStop=/usr/bin/fdfs_storaged /etc/fdfs/storage.conf stop
|
||||||
|
|
||||||
# No artificial start/stop timeout
|
# No artificial start/stop timeout
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ After=network-online.target
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/opt/fastdfs/data/fdfs_trackerd.pid
|
PIDFile=/opt/fastdfs/data/fdfs_trackerd.pid
|
||||||
ExecStart=/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
|
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
|
ExecStop=/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf stop
|
||||||
|
|
||||||
# No artificial start/stop timeout
|
# No artificial start/stop timeout
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue