modify After directive of systemd config files

use_libfastcommon1.56
YuQing 2021-09-14 10:40:49 +08:00
parent 625c5eb326
commit b6ef9d0f25
2 changed files with 6 additions and 4 deletions

View File

@ -1,11 +1,12 @@
[Unit]
Description=FastDFS storaged service
After=network.target
After=network-online.target
[Service]
Type=forking
PIDFile=/opt/fastcfs/data/fdfs_storaged.pid
ExecStart=/usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart
ExecStart=/usr/bin/fdfs_storaged /etc/fdfs/storage.conf start
ExecStop=/usr/bin/fdfs_storaged /etc/fdfs/storage.conf stop
# No artificial start/stop timeout
TimeoutSec=0

View File

@ -1,11 +1,12 @@
[Unit]
Description=FastDFS trackerd service
After=network.target
After=network-online.target
[Service]
Type=forking
PIDFile=/opt/fastcfs/data/fdfs_trackerd.pid
ExecStart=/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart
ExecStart=/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
ExecStop=/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf stop
# No artificial start/stop timeout
TimeoutSec=0