service/services/authd.spec

23 lines
673 B
Plaintext
Raw Normal View History

2019-08-10 17:16:24 +02:00
name: authd
2019-11-07 14:45:12 +01:00
command: authd -K ${SERVICE_ROOT}/jwt_key -u ${SERVICE_ROOT}/passwd -g ${SERVICE_ROOT}/group
2019-08-10 17:16:24 +02:00
environment-variables:
- LD_LIBRARY_PATH=/usr/local/lib
user: authd
2019-11-07 14:45:12 +01:00
provides: auth
%pre-start
2019-08-10 17:16:24 +02:00
name: Creating IPC directory
2019-11-07 14:45:12 +01:00
unless-directory: /run/ipc
2019-08-10 17:16:24 +02:00
command: install -d -m6777 /run/ipc
2019-11-07 14:45:12 +01:00
%pre-start
2019-08-10 17:16:24 +02:00
name: Creating JWT key
2019-11-07 14:45:12 +01:00
unless-file: ${SERVICE_ROOT}/jwt_key
command: head -c 64 /dev/urandom | base64 > ${SERVICE_ROOT}/jwt_key
%pre-start
2019-08-10 17:16:24 +02:00
name: passwd file
2019-11-07 14:45:12 +01:00
unless-file: ${SERVICE_ROOT}/passwd
command: touch ${SERVICE_ROOT}/passwd
%pre-start
2019-08-10 17:16:24 +02:00
name: group file
2019-11-07 14:45:12 +01:00
unless-file: ${SERVICE_ROOT}/group
command: touch ${SERVICE_ROOT}/group