diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-02-28 20:07:23 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-02-28 20:10:46 +0100 |
commit | ae33f9100e3b67a8ce07e5ad8b1f0ee73867df6a (patch) | |
tree | 9180f8dbd75ff481dae22f5944455f9b6218a0e1 /conf/unit | |
parent | a44174a09215e7b4dd56084662cc2a068404ffea (diff) |
Refactor user session management
Change-Id: Ib6ba886df110d8a23e3760e1818263ec757b9c7c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'conf/unit')
-rw-r--r-- | conf/unit/afm-unit-debug.conf.in | 3 | ||||
-rw-r--r-- | conf/unit/afm-unit.conf.in | 3 | ||||
-rw-r--r-- | conf/unit/generate-unit-conf/provided.inc | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/conf/unit/afm-unit-debug.conf.in b/conf/unit/afm-unit-debug.conf.in index ba42ea4..05881fa 100644 --- a/conf/unit/afm-unit-debug.conf.in +++ b/conf/unit/afm-unit-debug.conf.in @@ -211,7 +211,8 @@ WantedBy=afm-user-session@.target %systemd-unit socket afm-api-ws-{{name}}@ [Unit] Description=Provides api {{name}} for user %i -After=user@%i.service +Requires=afm-user-setup@%i.service +After=afm-user-setup@%i.service DefaultDependencies=no [Socket] SmackLabel=* diff --git a/conf/unit/afm-unit.conf.in b/conf/unit/afm-unit.conf.in index f9bf8bc..20a3b50 100644 --- a/conf/unit/afm-unit.conf.in +++ b/conf/unit/afm-unit.conf.in @@ -211,7 +211,8 @@ WantedBy=afm-user-session@.target %systemd-unit socket afm-api-ws-{{name}}@ [Unit] Description=Provides api {{name}} for user %i -After=user@%i.service +Requires=afm-user-setup@%i.service +After=afm-user-setup@%i.service DefaultDependencies=no [Socket] SmackLabel=* diff --git a/conf/unit/generate-unit-conf/provided.inc b/conf/unit/generate-unit-conf/provided.inc index 5a43ed7..ead1983 100644 --- a/conf/unit/generate-unit-conf/provided.inc +++ b/conf/unit/generate-unit-conf/provided.inc @@ -14,7 +14,8 @@ 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 -After=user@%i.service +Requires=afm-user-setup@%i.service +After=afm-user-setup@%i.service DefaultDependencies=no [Socket] |