* allow mapping processes to multiple init-scripts

* reverse-ish the version logic
This commit is contained in:
2019-04-18 10:31:00 +02:00
parent f121466eaa
commit 6f69be3f6a
5 changed files with 54 additions and 52 deletions

View File

@ -1,16 +1,16 @@
# Default settings in the default section (obviously)
[default]
# version_diff represents (hopefully) the compatibility change for the package.
# It works by starting with the number of dots in the version scheme + 1, and
# then removes 1 for every field that is the same in the current and new
# version. Some examples:
# 1.0.0 -> 1.0.0 (level 0, a reinstall of the same version)
# 1.0.0 -> 1.0.1 (level 1)
# 1.0.0 -> 1.1.0 (level 2)
# 1.0.0 -> 2.0.0 (level 3)
# 1.0.0.0 -> 2.0.0.0 (level 4)
# 1.0.1 -> 1.0.1.1 (level 2, because that's how it turned out...)
min_version_diff=2
# version_sensitivity represents how many point fields (counting from left) that must
# match in the versioning scheme for automatic upgrades to be allowed. Typically
# you want to set this to 1 to not auto-update major version that may brake things
# Some examples:
# 1.0.0 -> 1.0.0 (3)
# 1.0.0 -> 1.0.1 (2)
# 1.0.0 -> 1.1.0 (1)
# 1.0.0 -> 2.0.0 (0)
# 1.0.0.0 -> 2.0.0.0 (0)
# 1.0.1 -> 1.0.1.1 (3)
version_sensitivity=1
# sau can reboot on system upgrades (FreeBSD) or if the service restarts does
# not close all deleted files (any platform)
@ -36,18 +36,20 @@ stderr_loglevel=debug
syslog_loglevel=info
# The packages section contains <package>=<version_diff> pairs to override the
# default min_version_diff. Note that package naming may differ depending on
# The packages section contains <package>=<version_sensitivity> pairs to override the
# default version_sensitivity. Note that package naming may differ depending on
# platform
[packages]
# Gentoo kernel stuff should be updated manually
sys-kernel/gentoo-sources=0
sys-kernel/spl=0
sys-fs/zfs-kmod=0
dev-db/postgresql=1
# Gentoo uses the category/package naming scheme
dev-db/postgresql=2
# FreeBSD uses the short package name
gitlab=1
# Gentoo kernel stuff should be updated manually
sys-kernel/gentoo-sources=-1
sys-kernel/spl=-1
sys-fs/zfs-kmod=-1
# FreeBSD uses the short package name (without category)
gitlab=2
# The processes section contains <process-name>=<service-name>
@ -58,6 +60,9 @@ gitlab=1
gitlab-workhorse=gitlab
qemu-system-x86_64=
# sometimes multiple services will have to be restarted
#ruby24=puppetserver puppetdb
# The services section contains restart policy for specific services.
# valid policies are 'ignore', 'warn', 'restart' and 'silent-restart'.
# 'silent-restart' is like 'restart', but will not log a warning when