From user-return-11546-apmail-zookeeper-user-archive=zookeeper.apache.org@zookeeper.apache.org Fri Jul 13 15:30:25 2018 Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8A2DC188E8 for ; Fri, 13 Jul 2018 15:30:25 +0000 (UTC) Received: (qmail 24861 invoked by uid 500); 13 Jul 2018 15:30:24 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 24800 invoked by uid 500); 13 Jul 2018 15:30:24 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 24784 invoked by uid 99); 13 Jul 2018 15:30:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2018 15:30:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 86196CE7CD for ; Fri, 13 Jul 2018 15:30:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.998 X-Spam-Level: * X-Spam-Status: No, score=1.998 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id mXRYXMKhZVuS for ; Fri, 13 Jul 2018 15:30:21 +0000 (UTC) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-oln040092068015.outbound.protection.outlook.com [40.92.68.15]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 6F8B45F22E for ; Fri, 13 Jul 2018 15:30:20 +0000 (UTC) Received: from HE1EUR02FT040.eop-EUR02.prod.protection.outlook.com (10.152.10.56) by HE1EUR02HT058.eop-EUR02.prod.protection.outlook.com (10.152.11.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.952.17; Fri, 13 Jul 2018 15:30:12 +0000 Received: from VI1P191MB0319.EURP191.PROD.OUTLOOK.COM (10.152.10.52) by HE1EUR02FT040.mail.protection.outlook.com (10.152.11.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.952.17 via Frontend Transport; Fri, 13 Jul 2018 15:30:12 +0000 Received: from VI1P191MB0319.EURP191.PROD.OUTLOOK.COM ([fe80::d5b9:d962:6c25:9eb3]) by VI1P191MB0319.EURP191.PROD.OUTLOOK.COM ([fe80::d5b9:d962:6c25:9eb3%4]) with mapi id 15.20.0952.017; Fri, 13 Jul 2018 15:30:12 +0000 From: adrien ruffie To: "user@zookeeper.apache.org" Subject: zookeeper as systemd Thread-Topic: zookeeper as systemd Thread-Index: AQHUGrypHNM3C6DJ20OunnQSh3VVhQ== Date: Fri, 13 Jul 2018 15:30:11 +0000 Message-ID: Accept-Language: fr-FR, en-US Content-Language: fr-FR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:73060B7117F956B5948084D2F758C86293538138493BCA0106CC22BDF54A826A;UpperCasedChecksum:003287E3249DFF4FAC1C90B47669CE0F6D4FF71CFF0FB5E5E1D8BA3BCC39F11F;SizeAsReceived:6868;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [Z8Bq7LJvnr/SevJlPmZ/xcZMYUvw7TLo] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HE1EUR02HT058;7:DzZYKhREp7ZFQMj3M6ysjONe9ijuQic9dVN6+MrbIIr0QbBz9nNmmg1dyqImtdVOYfk7nVGRPzSeYb3qSxAK7xr1dtDQkaY5WkRHvPHYctGQxXr06Yu6S5kqLPbziEll16USzWZpWektN025sfaPwloz707Qhs5VJojbuGHlByxpL6Ie9v8oj3ZW5vvHDieOt4PRtO6/C/exNClyYI/Lh8DCbmJ4F3ETk/4Hx2EMk5+pfOog5RRjMl6/CiOnLxwg x-incomingheadercount: 44 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125500)(1701031045);SRVR:HE1EUR02HT058; x-ms-traffictypediagnostic: HE1EUR02HT058: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(82015058);SRVR:HE1EUR02HT058;BCL:0;PCL:0;RULEID:;SRVR:HE1EUR02HT058; x-forefront-prvs: 07326CFBC4 x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(189003)(199004)(5640700003)(6436002)(33656002)(105586002)(106356001)(3480700004)(68736007)(104016004)(86152003)(9686003)(25786009)(54896002)(55016002)(256004)(97736004)(19627405001)(6916009)(6606003)(7116003)(5660300001)(14454004)(73972006)(74482002)(2351001)(82202002)(2900100001)(26005)(8936002)(81156014)(8676002)(1730700003)(7696005)(5250100002)(2501003)(6506007)(6346003)(74316002)(102836004)(56003)(476003)(486006)(86362001)(99286004);DIR:OUT;SFP:1901;SCL:1;SRVR:HE1EUR02HT058;H:VI1P191MB0319.EURP191.PROD.OUTLOOK.COM;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:; received-spf: None (protection.outlook.com: hotmail.fr does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=adriennolarsen@hotmail.fr; x-microsoft-antispam-message-info: /KchC+8je+vg3ZRmUKrKZn35Qqp5hLN/cfLeRQvu0rJJsbIIP/JnoHPeuncJgWQJTt/5LYV7NjcWVn9xd12BSor+pWxAybCkjXhwMbUIXHBP5NTvsgrN5uWinyJwvJyqcVUJtC6WAEUdkt6BrEBb95XmmjGgT3vlAFzyh+MjLJLZpF2hmg8+ME5dqFtGMA/QnGrLYjFcBM1ETQSPPo3ljulK28sPS8YSlNzAz6XR+VM= Content-Type: multipart/alternative; boundary="_000_VI1P191MB0319D21C98F02E72AD74B358A9580VI1P191MB0319EURP_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 074d7d4d-72e2-4a0a-9d89-73b16535e4cd X-MS-Exchange-CrossTenant-Network-Message-Id: 1b2d8647-4c67-49b7-daac-08d5e8d5863f X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 074d7d4d-72e2-4a0a-9d89-73b16535e4cd X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jul 2018 15:30:11.9812 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR02HT058 --_000_VI1P191MB0319D21C98F02E72AD74B358A9580VI1P191MB0319EURP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Zookeeper's users, I have 2 questions for you. what is the real difference between these 2 following commands ? (I don't f= ind any documentation) zkServer.sh start-foreground and zkServer.sh start My second question is, how I can correctly start my zookeeper as a systemcl= t service ? What is the common best template to write into /etc/systemd/system/zookeepe= r.service ? Do you use Restart=3Dalways ? RestartSec=3D0s ? What is "After=3Dnetwork.target" ? If my Zookeeper does not really start in 300 sec, the process will be shutd= own ? Do you have any example of zookeeper service file ? Because our zookeeper.service is right now: [Unit] Description=3DZooKeeper [Service] Type=3Dsimple User=3Dzookeeper Group=3Dzookeeper ExecStart=3D/usr/local/zookeeper-3.4.9/bin/zkServer.sh start-foreground TimeoutSec=3D300 [Install] WantedBy=3Dmulti-user.target ------------------- But I found this following on a blog: [Unit] Description=3DApache Zookeeper After=3Dnetwork.target [Service] Type=3Dforking User=3Dzookeeper Group=3Dzookeeper SyslogIdentifier=3Dzookeeper Restart=3Dalways RestartSec=3D0s ExecStart=3D/usr/bin/zookeeper-server start ExecStop=3D/usr/bin/zookeeper-server stop ExecReload=3D/usr/bin/zookeeper-server restart [Install] WantedBy=3Dmulti-user.target Thank you very much and best regards Adrien --_000_VI1P191MB0319D21C98F02E72AD74B358A9580VI1P191MB0319EURP_--