Change:
I'm upgrading my systems from NixOS 16.03 to 16.09 and I'm trying to get syslog-ng working again. It's currently configured as: The issue is that systemd is not noticing that syslog-ng has started: I do see that syslog-ng is running: Note that the systemd syslog-ng service is with This that syslog-ng should notify systemd when it has started up. My current hypotheses is that with the systemd upgrade to 231 something in the notification protocol has changed causing the syslog-ng notification to fail.
It has strange config: how could this work ? could you test this? syslog-ng at least starts for me
thanks with those changes syslog-ng starts up correctly.
means that the syslog-ng unit will be activated (started) if gets activated. By itself this relation defines no order. That's why you can add and relations as you wish. As I've mention in , the root problem is that our current version of syslog-ng can't be built with our current version of systemd and thus the sd-notify feature is not present.
Hi I did some work on the syslog-ng upgrade. I've managed to get syslog-ng-3.9.1 to build with I will now test this a bit.

Discussion:
stdenv.mkDerivation rec { name = "libivykis-${version}"; <del> version = "0.40"; </del> <ins> version = "0.41"; </ins> src = fetchurl { url = "mirror://sourceforge/libivykis/${version}/ivykis-${version}.tar.gz"; <del> sha256 = "1rn32dijv0pn9y2mbdg1n7al4h4i5pwwhhihr9pyakwyb6qgmqxj"; </del> <ins> sha256 = "1igk3svf36i5xgb6ipc507xpj6zjm4xi9j1j2cdqaachllwlb4rc"; </ins> }; nativeBuildInputs = [ autoreconfHook pkgconfig ];

{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, glib, syslogng <del> , eventlog, perl, python, yacc, riemann_c_client, libivykis, protobufc </del> <ins> , eventlog, perl, python, yacc, protobufc, libivykis </ins> }: stdenv.mkDerivation rec { name = "syslog-ng-incubator-${version}"; <del> version = "141106-54179c5"; </del> <ins> version = "0.5.0"; </ins> src = fetchFromGitHub { owner = "balabit"; repo = "syslog-ng-incubator"; <del> rev = "54179c5f733487fe97ee856bc27130d0b09f3d5a"; sha256 = "1y099f7pdan1441ycycd67igcwbla2m2cgnxjfvdw76llvi35sam"; </del> <ins> rev = name; sha256 = "00j123ya0xfj1jicaqnk1liffx07mhhf0r406pabxjjj97gy8nlk"; </ins> }; <ins> nativeBuildInputs = [ pkgconfig autoreconfHook yacc ]; </ins> buildInputs = [ <del> autoreconfHook pkgconfig glib syslogng eventlog perl python yacc riemann_c_client libivykis protobufc </del> <ins> glib syslogng eventlog perl python protobufc libivykis </ins> ]; configureFlags = [ <del> "--without-ivykis" </del> "--with-module-dir=$(out)/lib/syslog-ng" ];

license = licenses.gpl2; maintainers = [ maintainers.rickynils ]; platforms = platforms.linux; <ins> broken = true; # does not work with our new syslog-ng version yet </ins> }; }

<del> { stdenv, fetchurl, eventlog, pkgconfig, glib, python, systemd, perl , riemann_c_client, protobufc, pcre, yacc }: </del> <ins> { stdenv, fetchurl, openssl, libcap, curl, which , eventlog, pkgconfig, glib, python, systemd, perl , riemann_c_client, protobufc, pcre, libnet , json_c, libuuid, libivykis, mongoc, rabbitmq-c }: </ins> <del> stdenv.mkDerivation rec { name = "syslog-ng-${version}"; </del> <ins> let pname = "syslog-ng"; in </ins> <del> version = "3.6.2"; </del> <ins> stdenv.mkDerivation rec { name = "${pname}-${version}"; version = "3.9.1"; </ins> src = fetchurl { <del> url = "http://www.balabit.com/downloads/files?path=/syslog-ng/sources/${version}/source/syslog-ng_${version}.tar.gz"; sha256 = "0qc21mwajk6xrra3gqy2nvaza5gq62psamq4ayphj7lqabdglizg"; </del> <ins> url = "https://github.com/balabit/${pname}/releases/download/${name}/${name}.tar.gz"; sha256 = "05qaqw115py5iz55vmc0j1xcwcpr8wa9vpmbixhr1rqaamm8ay2n"; </ins> }; <del> buildInputs = [ eventlog pkgconfig glib python systemd perl riemann_c_client protobufc yacc pcre ]; </del> <ins> nativeBuildInputs = [ pkgconfig which ]; buildInputs = [ libcap curl openssl eventlog glib perl python systemd riemann_c_client protobufc pcre libnet json_c libuuid libivykis mongoc rabbitmq-c ]; </ins> configureFlags = [ <ins> "--enable-manpages" </ins> "--enable-dynamic-linking" "--enable-systemd" <ins> "--with-ivykis=system" "--with-librabbitmq-client=system" "--with-mongoc=system" "--with-jsonc=system" "--with-systemd-journal=system" </ins> "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ]; <ins> outputs = [ "out" "man" ]; </ins> meta = with stdenv.lib; { homepage = "http://www.balabit.com/network-security/syslog-ng/"; description = "Next-generation syslogd with advanced networking and filtering capabilities"; license = licenses.gpl2; <del> maintainers = [ maintainers.rickynils ]; </del> <ins> maintainers = with maintainers; [ rickynils  fpletz ]; </ins> platforms = platforms.linux; }; }