You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
837 B
24 lines
837 B
[Unit]
|
|
Description=Z-Wave JS UI - Bootstrap the store from the packaged initial settings
|
|
Documentation=https://zwave-js.github.io/zwave-js-ui/guide/#configuration
|
|
After=var-lib-virtiofs-data.mount
|
|
Requires=var-lib-virtiofs-data.mount
|
|
|
|
# Only run if the initial settings are there to be copied
|
|
ConditionPathExists=/etc/quadlets/zwave-js-ui/initial-settings.json
|
|
|
|
# Start/stop this unit when the target is started/stopped, before the service
|
|
PartOf=zwave-js-ui.target
|
|
Before=zwave-js-ui.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
|
|
# Seed the store's settings.json on first boot only (see init.sh). Z-Wave JS UI
|
|
# owns that file afterwards: every change made in the web interface is written
|
|
# back to it, so it is never overwritten once it exists.
|
|
ExecStart=/etc/quadlets/zwave-js-ui/init.sh
|
|
|
|
[Install]
|
|
WantedBy=zwave-js-ui.target
|
|
|