Gentoo Archives: gentoo-user

From: Michael Orlitzky <mjo@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Safe systemd "reload" command
Date: Tue, 07 Jun 2016 13:14:13
Message-Id: 5756C893.5020905@gentoo.org
In Reply to: Re: [gentoo-user] Safe systemd "reload" command by Tom H
1 On 06/07/2016 06:17 AM, Tom H wrote:
2 >
3 > I've just looked at your script.
4 >
5 > Do
6 > systemctl try-restart spamassassin
7 > and
8 > systemctl try-restart amavisd
9 > need "2>/dev/null" if you're booted with sysvinit+openrc but have
10 > systemd installed like the rc-service invocations in the opposite
11 > case? or do they fail silently?
12 >
13
14 Beats me, I don't have any way to test it. I am planning to do another
15 revision bump at some point with ExecReload for spamd, so if anyone
16 tells me that I need 2>/dev/null on those lines, I'll fix it.