提交 9258720e 编写于 作者: R Ray

添加输出到null

上级 2af8c6e9
...@@ -24,6 +24,8 @@ echo "Wants=network-online.target" >>${servicePath} ...@@ -24,6 +24,8 @@ echo "Wants=network-online.target" >>${servicePath}
echo "After=network.target" >>${servicePath} echo "After=network.target" >>${servicePath}
echo "[Service]" >>${servicePath} echo "[Service]" >>${servicePath}
echo "Type=simple" >>${servicePath} echo "Type=simple" >>${servicePath}
echo "StandardOutput=null" >>${servicePath}
echo "StandardError=null" >>${servicePath}
echo "ExecStart=${current_dir}/${scriptName}" >>${servicePath} echo "ExecStart=${current_dir}/${scriptName}" >>${servicePath}
echo "ExecReload=${current_dir}/restart_linux.sh" >>${servicePath} echo "ExecReload=${current_dir}/restart_linux.sh" >>${servicePath}
echo "ExecStop=${current_dir}/stop_linux.sh" >>${servicePath} echo "ExecStop=${current_dir}/stop_linux.sh" >>${servicePath}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册