public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Safe systemd "reload" command
@ 2016-06-04 22:48 Michael Orlitzky
  2016-06-05  0:19 ` Rich Freeman
  2016-06-06 22:04 ` Tom H
  0 siblings, 2 replies; 18+ messages in thread
From: Michael Orlitzky @ 2016-06-04 22:48 UTC (permalink / raw
  To: gentoo-user

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.



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-06-07 13:14 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-04 22:48 [gentoo-user] Safe systemd "reload" command Michael Orlitzky
2016-06-05  0:19 ` Rich Freeman
2016-06-05  0:47   ` Michael Orlitzky
2016-06-05  1:01     ` Michael Orlitzky
2016-06-05  7:23       ` J. García
2016-06-05 13:37         ` Michael Orlitzky
2016-06-05 14:31           ` Rich Freeman
2016-06-05 15:37           ` J. García
2016-06-05 15:44             ` J. García
2016-06-05 16:09             ` Michael Orlitzky
2016-06-05 16:27               ` J. García
2016-06-05 16:54                 ` Michael Orlitzky
2016-06-07  9:23                 ` Tom H
2016-06-06 22:17         ` Tom H
2016-06-06 22:04 ` Tom H
2016-06-06 22:59   ` Michael Orlitzky
2016-06-07 10:17     ` Tom H
2016-06-07 13:13       ` Michael Orlitzky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox