unit.conf: Explicit dependency to user-config.service
[src/app-framework-main.git] / conf / afm-unit-debug.conf.in
index 8c2431d..70cdc47 100644 (file)
@@ -113,6 +113,8 @@ BindsTo=afm-api-ws-{{name}}.socket
 After=afm-api-ws-{{name}}.socket
 {{/value=auto|ws}}
 {{/required-api}}
+Requires=user-config.service
+After=user-config.service
 %nl
 
 [Service]
@@ -167,6 +169,7 @@ ExecStart=/usr/bin/afb-daemon \
        --port={{:#metadata.http-port}} \
        --token=HELLO \
        --verbose \
+       --monitoring \
        {{#content.type=application/vnd.agl.service}} \
                --roothttp=. \
        {{/content.type=application/vnd.agl.service}} \
@@ -217,7 +220,6 @@ ExecStart=/usr/bin/afb-daemon \
                        --dbus-server={{name}} \
                {{/value=dbus}}\
        {{/provided-api}}\
-       --monitoring \
        {{#content.type=text/html}}\
                --exec /usr/bin/web-runtime http://localhost:@p/{{content.src}}?token=@t
        {{/content.type=text/html}}\