diff options
Diffstat (limited to 'conf.d')
-rw-r--r-- | conf.d/etc/default/xds-agent | 5 | ||||
-rw-r--r-- | conf.d/etc/profile.d/xds-agent.sh | 4 | ||||
-rw-r--r-- | conf.d/etc/xds-agent/config.json | 9 | ||||
-rw-r--r-- | conf.d/usr/lib/systemd/user/xds-agent.service | 9 |
4 files changed, 27 insertions, 0 deletions
diff --git a/conf.d/etc/default/xds-agent b/conf.d/etc/default/xds-agent new file mode 100644 index 0000000..93d56cb --- /dev/null +++ b/conf.d/etc/default/xds-agent @@ -0,0 +1,5 @@ +# defaults file for XDS Agent +# this file is used for service environment in /usr/lib/systemd/user/xds-agent.service + +# Logging level (supported levels: panic, fatal, error, warn, info, debug) +LOG_LEVEL=info diff --git a/conf.d/etc/profile.d/xds-agent.sh b/conf.d/etc/profile.d/xds-agent.sh new file mode 100644 index 0000000..78eff4f --- /dev/null +++ b/conf.d/etc/profile.d/xds-agent.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +#---------- AGL xds-agent tool options Start ---------" +[ ":${PATH}:" != *":%%XDS_INSTALL_BIN_DIR%%:"* ] && export PATH=%%XDS_INSTALL_BIN_DIR%%:${PATH} diff --git a/conf.d/etc/xds-agent/config.json b/conf.d/etc/xds-agent/config.json new file mode 100644 index 0000000..35d702d --- /dev/null +++ b/conf.d/etc/xds-agent/config.json @@ -0,0 +1,9 @@ +{ + "logsDir": "${HOME}/.xds/agent/logs", + "xds-apikey": "1234abcezam", + "syncthing": { + "home": "${HOME}/.xds/agent/syncthing-config", + "gui-address": "http://localhost:8386", + "gui-apikey": "1234abcezam" + } +} diff --git a/conf.d/usr/lib/systemd/user/xds-agent.service b/conf.d/usr/lib/systemd/user/xds-agent.service new file mode 100644 index 0000000..1fd038b --- /dev/null +++ b/conf.d/usr/lib/systemd/user/xds-agent.service @@ -0,0 +1,9 @@ +[Unit] +Description=XDS Agent + +[Service] +EnvironmentFile=-/etc/default/xds-agent +ExecStart=/opt/AGL/xds/agent/xds-agent & + +[Install] +WantedBy=multi-user.target |