You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2021/08/07 13:31:52 UTC

[incubator-doris] branch master updated: [Best Practice] Add systemd service config file (#6353)

This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new d587440  [Best Practice] Add systemd service config file (#6353)
d587440 is described below

commit d587440e40a60b368b01c31073506ba3f9826555
Author: CenterCode <yx...@users.noreply.github.com>
AuthorDate: Sat Aug 7 21:31:43 2021 +0800

    [Best Practice] Add systemd service config file (#6353)
    
    Add Systemd serivce config file, which can manage doris sevice's start and stop,
    and automatically restart them when they are unscheduled failed.
---
 tools/systemd/doris-be.service | 38 ++++++++++++++++++++++++++++++++++++++
 tools/systemd/doris-fe.service | 38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/tools/systemd/doris-be.service b/tools/systemd/doris-be.service
new file mode 100644
index 0000000..29851d6
--- /dev/null
+++ b/tools/systemd/doris-be.service
@@ -0,0 +1,38 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+[Unit]
+Description=Doris BE
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=forking
+User=doris
+Group=doris
+LimitCORE=infinity
+LimitNOFILE=200000
+Restart=on-failure
+RestartSec=30
+StartLimitInterval=120
+StartLimitBurst=3
+KillMode=none
+ExecStart=/home/doris/be/bin/start_be.sh --daemon
+ExecStop=/home/doris/be/bin/stop_be.sh
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file
diff --git a/tools/systemd/doris-fe.service b/tools/systemd/doris-fe.service
new file mode 100644
index 0000000..29265a5
--- /dev/null
+++ b/tools/systemd/doris-fe.service
@@ -0,0 +1,38 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+[Unit]
+Description=Doris FE
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=forking
+User=doris
+Group=doris
+LimitCORE=infinity
+LimitNOFILE=200000
+Restart=on-failure
+RestartSec=30
+StartLimitInterval=120
+StartLimitBurst=3
+KillMode=none
+ExecStart=/home/doris/fe/bin/start_fe.sh --daemon
+ExecStop=/home/doris/fe/bin/stop_fe.sh
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org