fastdfs/systemd/fdfs_storaged.service

20 lines
435 B
INI

[Unit]
Description=FastDFS storaged service
After=network-online.target
[Service]
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
TimeoutSec=0
# Disable OOM kill by Linux kernel
OOMScoreAdjust=-1000
[Install]
WantedBy=multi-user.target