Files
gitea-pages/admin-guide/architecture/services-cron-etc.rst
2021-05-05 14:24:27 +02:00

1014 B

systemd

SysV init scripts

We only use SysV init scripts if systemd unit files are not provided by the software in question. Our own services are all configured through systemd unit files.

cron vs. systemd timers

While we start/enable cron by default, we use systemd timers for everything. The advantages are:

  • unified view with other system entities, eg. services, mounts, devices
  • easy log filtering with journalctl -u TIMER
  • easy introspection via systemctl list-timers, systemctl cat TIMER, etc.

Mounts

Mounts, including automounts, are configured in /etc/fstab. Generating the mount units directly leads to certain difficulties (SELinux problems which we never quite figured out, stale mount unit files when the mountpoint changes, etc). Automounts can be configured by adding x-systemd.automount to the mount options.

We do start the autofs service on some systems, to provide the -net map.