Avoid implicit Before socket.target
[src/app-framework-main.git] / conf / unit / generate-unit-conf / service.inc
index 273db3b..2ff1de7 100644 (file)
@@ -47,6 +47,13 @@ BindsTo=UNIT_NAME_SOCKET_FOR({{name}})
 After=UNIT_NAME_SOCKET_FOR({{name}})
 {{/value=auto|ws}}
 {{/required-api}}
+{{#provided-api}}
+{{#value=ws|auto}}
+Requires=UNIT_NAME_SOCKET_FOR({{name}})
+After=UNIT_NAME_SOCKET_FOR({{name}})
+{{/value=ws|auto}}
+{{/provided-api}}
+
 %nl
 
 [Service]