From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2974 invoked from network); 3 Nov 2020 16:55:02 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 3 Nov 2020 16:55:02 -0000 Received: (qmail 11114 invoked by uid 89); 3 Nov 2020 16:55:26 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 11107 invoked from network); 3 Nov 2020 16:55:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=U7OaHnX96h0YK1gfh7Oz0zwRgw/L5unPnoL9ksXbevE=; b=pk76O0hsWK3I7p42T7VqGLOGSkmE1ciZ+2JYs0OV7+RjGiGsRLz/30tazinHbUM48m yQG6XFvJIFUIadDMQTKSW8go1DSChRy/YyQ68f3uCIVYQqFgxIpc63nhs7coAQDnAHb+ K0yy8QTB30pExB4/Cwsck2gmPTf2cFvHZcMFeD2T2h4JOop0YWWxaRme9BQ/bFU2hkWw M+jPAlsMH/UQ4UrHCvxIBlZqhFt6jIxGSZdrSzCLfTIgrJMn+dbEL3b4hU0Hx2QQ9bZf iONnySWbQU4wfCmqUFTSL5ra339pDACUi4ta9PhGu6/J1Anyvt32Re/kbSIcXmP3ILsL ljCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=U7OaHnX96h0YK1gfh7Oz0zwRgw/L5unPnoL9ksXbevE=; b=nHoFBPDDXM/ONM5PVlGuAsyy/F2drBUa6RzR8zhCnU++nvWQ8Le0UHS2tS4gO9LwuJ TbgppuV0UwY4UNYQnj4WxUq3y4lP/bo57B7mvXjGXlVgV64LKCISS/Vgae2SbgSDwn9U 8RB/WAJQ4qDl+HA8n/pZjRqB1AbobTUGiMs8OCwDiqJ0DD/vOZ0Zo63XoChJpatTvxg5 PKg5E6GgkrwtpBWJfeRbIpM59rNsH1cQ92z5mDyP4mrDTXTYY6CRFYhjVfyMeXfL8jGB 9nsI8wSLXCkWVCMNLhxuARxyTUBGAJQeqGIeudYxXiIvlcENyH+ZhmWuEJNwqvWH059b VQhg== X-Gm-Message-State: AOAM532t+Yao/KYLBleHGYlEfiY5XazLfW3t9gnBK7ofqCngwoKUgYpL wWOudwVsALp2c6KgE+mmqVVHvOB/xu8AJmJedyOapFXMQwI= X-Google-Smtp-Source: ABdhPJwPUhtMLp1sUKAO6Y4HChfFaLC+CIKz/h5xnUyHh9v8PfqTqoQG1sJi4zMIqhrQ0tv9201KPCB4ppphmvKGqow= X-Received: by 2002:a02:9981:: with SMTP id a1mr14535852jal.54.1604422499024; Tue, 03 Nov 2020 08:54:59 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Guillermo Date: Tue, 3 Nov 2020 13:54:49 -0300 Message-ID: Subject: Re: writing s6 services To: Supervision Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El mar., 3 nov. 2020 a las 8:48, billa chaitanya escribi=C3=B3: > > > So, Is there any variable we can use inside run or finis= h > > script of a service equivalent to the pid of the process started insid= e > > run script? The PID of the supervised process will be the same as that of the 'run' script if it is correctly written, so it's $$ for a shell script, and the value of the environment variable specified to the getpid program for an execline script. * http://www.skarnet.org/software/execline/getpid.html It is not available inside the 'finish' script, but even if it was, it is no longer useful since, if that script is being executed, the supervised process has already terminated, and the PID it had has been 'released'. G.