From owner-freebsd-stable@freebsd.org Wed Aug 19 08:37:51 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72BF89BD233 for ; Wed, 19 Aug 2015 08:37:51 +0000 (UTC) (envelope-from marko.cupac@mimar.rs) Received: from smtp.mimar.rs (smtp.mimar.rs [193.53.106.135]) by mx1.freebsd.org (Postfix) with ESMTP id 26735A6A for ; Wed, 19 Aug 2015 08:37:50 +0000 (UTC) (envelope-from marko.cupac@mimar.rs) Received: from vscan.mimar.rs (vscan.mimar.rs [193.53.106.134]) by smtp.mimar.rs (Postfix) with ESMTP id BBB7D89926 for ; Wed, 19 Aug 2015 10:37:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mimar.rs; h= content-transfer-encoding:content-type:content-type:mime-version :x-mailer:organization:message-id:subject:subject:from:from:date :date:received:received; s=mimar-0901; t=1439973468; x= 1441787869; bh=Khm0nxqWhLlmEZr/c183gyEEqPr3awza0EMsgjolCHo=; b=j ydYX1K8Mq0ap3JtU7d4dMePfBh43pznLLQb4V0x6Nrtd7urrho1Hf+mzElNnBAzy sHhI+EZ89SOT2cvIK3vP2ZBNBi9zqd0TgFsoQYjoaWMf3MDCF5hvPZ8ctz/nEtjB Zi3V1qZfKlg9SyaMwXHToqzDsoCVj8XSeGrf7y5eiQ= X-Virus-Scanned: amavisd-new at mimar.rs Received: from smtp.mimar.rs ([193.53.106.135]) by vscan.mimar.rs (vscan.mimar.rs [193.53.106.134]) (amavisd-new, port 10026) with ESMTP id 4ERGjXi1aZ3I for ; Wed, 19 Aug 2015 10:37:48 +0200 (CEST) Received: from efreet (unknown [193.53.106.34]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: marko.cupac@mimar.rs) by smtp.mimar.rs (Postfix) with ESMTPSA id EA413898CD for ; Wed, 19 Aug 2015 10:37:47 +0200 (CEST) Date: Wed, 19 Aug 2015 10:37:47 +0200 From: Marko =?UTF-8?B?Q3VwYcSH?= To: FreeBSD stable Subject: best way to restart process Message-ID: <20150819103747.5c2ef288@efreet> Organization: mimar X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2015 08:37:51 -0000 Hi, I am trying to setup diskless client whose only purpose is logging of one user with permanent password into single RDP server via xfreerdp. I know how to setup autostart of xfreerdp, but I don't know how to restart if it exits for some reason (network problems etc.) What is the best way to check if process is running and restart it if it exits? Thank you in advance, --=20 Marko Cupa=C4=87 https://www.mimar.rs/