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 295A313829C for ; Sat, 4 Jun 2016 22:48:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A33BA141D5; Sat, 4 Jun 2016 22:48:37 +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 881DB254023 for ; Sat, 4 Jun 2016 22:48:36 +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 35C3D340B6E for ; Sat, 4 Jun 2016 22:48:35 +0000 (UTC) To: gentoo-user@lists.gentoo.org From: Michael Orlitzky Subject: [gentoo-user] Safe systemd "reload" command X-Enigmail-Draft-Status: N1110 Message-ID: <57535ABD.3010005@gentoo.org> Date: Sat, 4 Jun 2016 18:48:29 -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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 4452a6e8-9e9c-4318-b458-919014bb7fc7 X-Archives-Hash: 64c66045d05f2ab308552712f8974e3d I'm planning on adding USE=cron to mail-filter/spamassassin to perform nightly updates. I have a script that works for OpenRC, https://wiki.gentoo.org/wiki/SpamAssassin#Daily_updates but I've commented where I would like to have something similar for systemd users. Anybody know how to do that? We can't count on systemd being installed, so we need to... 1. Test that systemd is installed. 2. Check if e.g. spamd is running (depends on #1 for the commands). 3. Reload or restart the daemon if #1 and #2 hold; or do nothing if one of them doesn't.