Thanks a lot Thomas. One nitpick: It seems that calling "systemctl -q --root "$initdir" add-wants ..." is preferred these days and should handle the directory creation implicitly. At least that's what upstream did change to more and more in the past, and it seems reasonable not to duplicate code paths.