diff options
| author | cajun-rat <p@beta16.co.uk> | 2017-07-25 14:47:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-25 14:47:51 +0200 |
| commit | ea1c3a48c1fa417d4dc4da7260069e60596bdb1b (patch) | |
| tree | 3360c0e6d7fe563e8d07581ca5815447cce1dfcb /recipes-sota/rvi-sota-client/files/sota-client-autoprovision.service | |
| parent | 3c0ab61288f076dba4af4a303fa29ffcba0e4400 (diff) | |
| parent | 2c43ed02320350056a671c87188f3edfd2612a54 (diff) | |
| download | meta-updater-ea1c3a48c1fa417d4dc4da7260069e60596bdb1b.tar.gz | |
Merge pull request #108 from leon-anavi/pyro
Pyro
Diffstat (limited to 'recipes-sota/rvi-sota-client/files/sota-client-autoprovision.service')
| -rw-r--r-- | recipes-sota/rvi-sota-client/files/sota-client-autoprovision.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-sota/rvi-sota-client/files/sota-client-autoprovision.service b/recipes-sota/rvi-sota-client/files/sota-client-autoprovision.service new file mode 100644 index 0000000..0431455 --- /dev/null +++ b/recipes-sota/rvi-sota-client/files/sota-client-autoprovision.service | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=SOTA Client Autoprovisioning | ||
| 3 | Requires=network-online.target | ||
| 4 | After=network-online.target | ||
| 5 | |||
| 6 | [Service] | ||
| 7 | Type=oneshot | ||
| 8 | WorkingDirectory=/var/sota | ||
| 9 | EnvironmentFile=/var/sota/sota_provisioning_url.env | ||
| 10 | Environment=SOTA_CERT_DIR=/var/sota | ||
| 11 | ExecStart=/usr/bin/sota_provision.sh sota_provisioning_credentials | ||
| 12 | RemainAfterExit=true | ||
| 13 | StandardOutput=journal | ||
| 14 | |||
| 15 | [Install] | ||
| 16 | WantedBy=multi-user.target | ||
