From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7751513829C for ; Sun, 5 Jun 2016 00:47:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C0BF625402A; Sun, 5 Jun 2016 00:47:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B7AF1254021 for ; Sun, 5 Jun 2016 00:47:28 +0000 (UTC) Received: from [192.168.1.100] (c-98-218-46-55.hsd1.md.comcast.net [98.218.46.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mjo) by smtp.gentoo.org (Postfix) with ESMTPSA id 30FDE340B37 for ; Sun, 5 Jun 2016 00:47:27 +0000 (UTC) Subject: Re: [gentoo-user] Safe systemd "reload" command To: gentoo-user@lists.gentoo.org References: <57535ABD.3010005@gentoo.org> From: Michael Orlitzky Message-ID: <5753769C.3020404@gentoo.org> Date: Sat, 4 Jun 2016 20:47:24 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 1ec03bce-9e16-4136-bc31-b631d6fca272 X-Archives-Hash: 00c31d01879615467471f385f07bf9fa On 06/04/2016 08:19 PM, Rich Freeman wrote: > > Couldn't you just check for the existence of systemctl, and if it > exists call "systemctl try-restart spamd". That will only work if > systemd is running and spamd is running. I'm sure you can accomplish > the same via dbus as well. > Sounds good, do you want to try it and add it to the wiki? =) I don't need anything complicated, but I don't run systemd, so I can't actually test anything to make sure it works. But as long as someone else says it does and it doesn't hurt openrc users (I can test that), I'll ship it.