add graceful shutdown to OpenRC script
This commit is contained in:
@@ -6,6 +6,9 @@ description="SeaweedFS ${service_name} service"
|
||||
command="/usr/bin/weed"
|
||||
command_user="${SEAWEEDFS_USER:-seaweedfs}:${SEAWEEDFS_GROUP:-seaweedfs}"
|
||||
command_background="yes"
|
||||
# SeaweedFS performs a graceful shutdown, including a 10-second final heartbeat.
|
||||
# The OpenRC default stop timeout can expire before that work has completed.
|
||||
retry="TERM/30/KILL/5"
|
||||
pidfile="/run/seaweedfs/${RC_SVCNAME}.pid"
|
||||
output_log="${SEAWEEDFS_LOG:-/var/log/seaweedfs/${RC_SVCNAME}.log}"
|
||||
error_log="${SEAWEEDFS_ERRLOG:-/var/log/seaweedfs/${RC_SVCNAME}.log}"
|
||||
|
||||
Reference in New Issue
Block a user