nixpkgs/nixos/modules/services
Philipp Kern 1db74d1150 nixos/spamassassin: Fix network requirement on boot
sa-update currently runs as part of the pre-start script of spamd. The
network is not guaranteed to be online at that point and even if we
were to depend on that, it makes the bootup brittle, as there is a
reliance on SpamAssassin's update server as a startup dependency on
boot.

Refactor the setup to move the pre-start script into its own unit.
This allows to perform the setup task only once. Continuous updates
are already done by sa-update.service triggered by sa-update.timer.
Only run sa-update in case /var/lib/spamassassin is empty.

While we are on it, let sa-update.service depend on the network being
online.
2021-02-11 10:09:45 +01:00
..
admin utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
amqp activemq: add type to configurationDir (#110450) 2021-01-22 11:11:05 +01:00
audio nixos/alsa: disable OSSEmulation by default 2021-01-26 15:06:33 +03:00
backup bacula: add types 2021-01-25 19:00:01 +01:00
cluster treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
computing treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
continuous-integration nixos/gitlab-runner: add support for 'docker+machine' and 'docker-ssh+machine' executors (#108763) 2021-01-26 00:01:54 +00:00
databases treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
desktops nixos/evolution: enable gnome-keyring 2021-01-20 19:51:32 +01:00
development nixos: use functionTo to prevent evaluation errors while merging 2021-01-24 17:18:37 +01:00
editors treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
games nixos/freeciv: init 2021-01-26 12:33:59 +01:00
hardware nixos/modules: stdenv.lib -> lib 2021-01-17 21:40:51 +01:00
logging treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
mail nixos/spamassassin: Fix network requirement on boot 2021-02-11 10:09:45 +01:00
misc nixos/felix: add types 2021-01-27 11:44:59 -08:00
monitoring nixos: use functionTo to prevent evaluation errors while merging 2021-01-24 17:18:37 +01:00
network-filesystems nixos: add services.rsyncd.socketActivated option 2021-01-28 11:22:31 +01:00
networking nixos/gvpe: add types 2021-01-28 13:58:33 -08:00
printing
scheduling nixos/marathon: remove module 2020-08-15 16:59:58 +02:00
search nixos/elasticsearch-curator: add type 2021-01-27 11:50:19 -08:00
security nixos/fprot: add type 2021-01-28 14:12:15 -08:00
system treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
torrent nixos/deluge: add type 2021-01-28 14:30:23 -08:00
ttys nixos/getty: add services.getty.loginOptions 2021-01-08 13:55:25 +00:00
video epgstation: 1.7.4 -> 1.7.5 2020-10-21 00:05:48 +09:00
wayland nixos/cage: supply pamEnvironment 2020-08-27 10:11:45 -05:00
web-apps nixos/hledger-web: init module and test 2021-01-28 15:29:53 +01:00
web-servers nixos/uwsgi: set up the default runtime directory 2021-01-25 14:05:39 +01:00
x11 nixos: use functionTo to prevent evaluation errors while merging 2021-01-24 17:18:37 +01:00