diff options
Diffstat (limited to 'conf/unit')
-rw-r--r-- | conf/unit/afm-unit-debug.conf.in | 4 | ||||
-rw-r--r-- | conf/unit/afm-unit.conf.in | 4 | ||||
-rw-r--r-- | conf/unit/generate-unit-conf/provided.inc | 1 | ||||
-rw-r--r-- | conf/unit/generate-unit-conf/service.inc | 3 |
4 files changed, 9 insertions, 3 deletions
diff --git a/conf/unit/afm-unit-debug.conf.in b/conf/unit/afm-unit-debug.conf.in index ab3b43a..fdea673 100644 --- a/conf/unit/afm-unit-debug.conf.in +++ b/conf/unit/afm-unit-debug.conf.in @@ -105,7 +105,8 @@ X-AFM--type={{content.type}} X-AFM--wgtdir={{:#metadata.install-dir}} X-AFM--workdir=/home/%i/app-data/{{:id}} %nl -Wants=afm-user-session@%i.target +Requires=afm-user-session@%i.target +Requires=afm-user-setup@%i.service After=afm-user-setup@%i.service # Adds check to smack ConditionSecurity=smack @@ -205,6 +206,7 @@ WantedBy=afm-user-session@.target %systemd-unit socket afm-api-ws-{{name}}@ [Unit] Description=Provides api {{name}} for user %i +Requires=afm-user-setup@%i.service After=afm-user-setup@%i.service [Socket] SmackLabel=* diff --git a/conf/unit/afm-unit.conf.in b/conf/unit/afm-unit.conf.in index 285d682..56a9075 100644 --- a/conf/unit/afm-unit.conf.in +++ b/conf/unit/afm-unit.conf.in @@ -105,7 +105,8 @@ X-AFM--type={{content.type}} X-AFM--wgtdir={{:#metadata.install-dir}} X-AFM--workdir=/home/%i/app-data/{{:id}} %nl -Wants=afm-user-session@%i.target +Requires=afm-user-session@%i.target +Requires=afm-user-setup@%i.service After=afm-user-setup@%i.service # Adds check to smack ConditionSecurity=smack @@ -205,6 +206,7 @@ WantedBy=afm-user-session@.target %systemd-unit socket afm-api-ws-{{name}}@ [Unit] Description=Provides api {{name}} for user %i +Requires=afm-user-setup@%i.service After=afm-user-setup@%i.service [Socket] SmackLabel=* diff --git a/conf/unit/generate-unit-conf/provided.inc b/conf/unit/generate-unit-conf/provided.inc index ff1ccf7..fd5d3ec 100644 --- a/conf/unit/generate-unit-conf/provided.inc +++ b/conf/unit/generate-unit-conf/provided.inc @@ -14,6 +14,7 @@ dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4: %systemd-unit socket afm-api-ws-{{name}}@ [Unit] Description=Provides api {{name}} for user %i +Requires=afm-user-setup@%i.service After=afm-user-setup@%i.service [Socket] diff --git a/conf/unit/generate-unit-conf/service.inc b/conf/unit/generate-unit-conf/service.inc index b5292d7..273db3b 100644 --- a/conf/unit/generate-unit-conf/service.inc +++ b/conf/unit/generate-unit-conf/service.inc @@ -32,7 +32,8 @@ X-AFM--wgtdir={{:#metadata.install-dir}} X-AFM--workdir=APP_DATA_DIR/{{:id}} %nl -Wants=afm-user-session@%i.target +Requires=afm-user-session@%i.target +Requires=afm-user-setup@%i.service After=afm-user-setup@%i.service # Adds check to smack |