Gentoo Archives: gentoo-user

From: Michael Orlitzky <mjo@g.o>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Safe systemd "reload" command
Date: Sat, 04 Jun 2016 22:48:48
Message-Id: 57535ABD.3010005@gentoo.org
1 I'm planning on adding USE=cron to mail-filter/spamassassin to perform
2 nightly updates. I have a script that works for OpenRC,
3
4 https://wiki.gentoo.org/wiki/SpamAssassin#Daily_updates
5
6 but I've commented where I would like to have something similar for
7 systemd users. Anybody know how to do that?
8
9 We can't count on systemd being installed, so we need to...
10
11 1. Test that systemd is installed.
12
13 2. Check if e.g. spamd is running (depends on #1 for the commands).
14
15 3. Reload or restart the daemon if #1 and #2 hold; or do nothing if
16 one of them doesn't.

Replies

Subject Author
Re: [gentoo-user] Safe systemd "reload" command Rich Freeman <rich0@g.o>
Re: [gentoo-user] Safe systemd "reload" command Tom H <tomh0665@×××××.com>