summaryrefslogtreecommitdiffstats
path: root/conf.d
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/.config/xds/server/config.json12
-rw-r--r--conf.d/etc/default/xds-server11
-rw-r--r--conf.d/service/xds-server.service2
3 files changed, 24 insertions, 1 deletions
diff --git a/conf.d/.config/xds/server/config.json b/conf.d/.config/xds/server/config.json
new file mode 100644
index 0000000..19700cf
--- /dev/null
+++ b/conf.d/.config/xds/server/config.json
@@ -0,0 +1,12 @@
+{
+ "webAppDir": "www",
+ "httpPort": "8000",
+ "shareRootDir": "${HOME}/.xds/share",
+ "logsDir": "/tmp/xds-server/logs",
+ "sdkRootDir": "/xdt/sdk",
+ "syncthing": {
+ "binDir": "",
+ "home": "${HOME}/.xds/syncthing-config",
+ "gui-address": "http://localhost:8384"
+ }
+}
diff --git a/conf.d/etc/default/xds-server b/conf.d/etc/default/xds-server
new file mode 100644
index 0000000..858530d
--- /dev/null
+++ b/conf.d/etc/default/xds-server
@@ -0,0 +1,11 @@
+# defaults file for XDS Server
+# this file is used for service environment in /lib/systemd/system/xds-server.service
+
+# JSON config file to use
+#APP_CONFIG=/home/devel/.config/xds/server/config.json
+
+# Logging level (supported levels: panic, fatal, error, warn, info, debug)
+#LOG_LEVEL=info
+
+# Filename where logs will be redirected (default stdout)
+#LOG_FILENAME=/tmp/xds/logs/xds-server.logs
diff --git a/conf.d/service/xds-server.service b/conf.d/service/xds-server.service
index 378de97..e938d3f 100644
--- a/conf.d/service/xds-server.service
+++ b/conf.d/service/xds-server.service
@@ -5,7 +5,7 @@ Description=XDS Server
User=devel
Type=forking
EnvironmentFile=-/etc/default/xds-server
-ExecStart=/usr/local/bin/xds-server-start.sh
+ExecStart=/opt/AGL/xds/xds-server-start.sh
[Install]
WantedBy=multi-user.target