<div class="__aliyun_email_body_block"><div style="clear: both;"><span style="font-family: Tahoma, Arial, STHeiti, SimSun; font-size: 14px; color: rgb(0, 0, 0);">Hi,Dev-team</span></div><div style="clear: both;"><span style="font-family: Tahoma, Arial, STHeiti, SimSun; font-size: 14px; color: rgb(0, 0, 0);"><br ></span></div><div style="clear: both;"><span style="font-family: Tahoma, Arial, STHeiti, SimSun; font-size: 14px; color: rgb(0, 0, 0);">  I always have a question about staring lttng-sessiond without option --daemonize: Why I left my console?</span></div><div style="clear: both;"><br ></div><div style="clear: both;">I wrote a simple shell to start lttng-sessiond as the following:</div><div style="clear: both;"><br ></div><div style="clear: both;">cat ./start</div><div style="clear: both;"><br ></div><div style="clear: both;">#!/bin/sh</div><div style="clear: both;">export LTTNG_SESSION_CONFIG_XSD_PATH=./config<br >export LTTNG_CONSUMERD64_BIN=./lttng-consumerd<br >exec ./lttng-sessiond --sig-parent -g admin</div><div style="clear: both;"><br ></div><div style="clear: both;"><br ></div><div style="clear: both;">[admin@rs1k04068 /home/admin/install]sudo sh ./start </div><div style="clear: both;"><br >[zhenyu.ren@rs1k04068.et2sqa /home/zhenyu.ren]</div><div style="clear: both;"><br ></div><div style="clear: both;">Note that user changed from admin to zhenyu.ren(zhenyu.ren sudo su admin previously). Where can I have a code fix to avoid logging out?</div></div>