Hey Alex. Somewhat related to this: Would you accept a patch that either: - more clearly documents that /etc/default/icinga2 doesn't work with systemd (e.g. by inserting "sysvinit" before "scripts"). or alternatively - one that adds "EnvironmentFile=-/etc/default/icinga2" to the unit file ? The later would load that just as with the sysvinit script, though I'm not sure whether this makes any sense, at least I couldn't find out whether Icinga2 daemon takes up any such envvars.
I've further seen that you have: ExecStartPre=/usr/lib/icinga2/prepare-dirs /usr/lib/icinga2/icinga2 I can't expect you'd change this to: ExecStartPre=/usr/lib/icinga2/prepare-dirs /etc/default/icinga2 ? The current dir doesn't seem to be used, and having the conf file as parameter would make it sourced and allow to alter the defaults of prepare-dirs. So things would still work out of the box with www-data, but it would be easily changeable without any more of work for you? :) Cheers.
smime.p7s
Description: S/MIME cryptographic signature