Fixes: #13474
Signed-off-by: Chuanhong Wang <wang.chuanhong@zte.com.cn>
(cherry picked from commit
2f36909e1e08bac993e77d1781a777b386335669)
Conflicts:
src/init-ceph.in
different content of cmd variable
[ -n "$max_open_files" ] && files="ulimit -n $max_open_files;"
if [ -n "$SYSTEMD_RUN" ]; then
- cmd="$SYSTEMD_RUN -r bash -c '$files $cmd --cluster $cluster -f'"
+ time=`date +%s.%N`
+ cmd="$SYSTEMD_RUN --unit=ceph-$name.$time -r bash -c '$files $cmd --cluster $cluster -f'"
else
cmd="$files $wrap $cmd --cluster $cluster $runmode"
fi