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. |