ソースを参照

chore: drop dev systemd unit + config for removed in-repo database

systemd/user/smartbotic-database.service launched a binary the build
no longer produces; with Requires= on it, smartbotic-webserver.service
would refuse to start. config/database.json was the config for the same
daemon and would otherwise be shipped via install(DIRECTORY config/).
Drop both and remove the After=/Requires=/Wants= references.
fszontagh 2 ヶ月 前
コミット
8e0016a63b

+ 0 - 32
config/database.json

@@ -1,32 +0,0 @@
-{
-  "grpc_port": 9010,
-  "data_directory": "${DATA_DIR:./data/database}",
-  "max_message_size_mb": 64,
-  "persistence": {
-    "wal_sync_interval_ms": 100,
-    "snapshot_interval_sec": 300,
-    "wal_size_trigger_mb": 10
-  },
-  "versioning": {
-    "enabled": false,
-    "default_config": {
-      "max_versions": 50,
-      "version_ttl_ms": 2592000000
-    },
-    "collection_overrides": {
-      "workflows": {
-        "enabled": true,
-        "max_versions": 100,
-        "version_ttl_ms": 7776000000,
-        "keep_on_delete": true
-      },
-      "executions": {
-        "enabled": false
-      }
-    }
-  },
-  "logging": {
-    "level": "${LOG_LEVEL:info}",
-    "file": "${LOG_FILE:}"
-  }
-}

+ 0 - 22
systemd/user/smartbotic-database.service

@@ -1,22 +0,0 @@
-[Unit]
-Description=SmartBotic Database Service
-Documentation=https://github.com/smartbotic/smartbotic
-After=network.target
-
-[Service]
-Type=simple
-WorkingDirectory=/data/smartbotic
-ExecStart=/data/smartbotic/build/smartbotic-database
-Restart=on-failure
-RestartSec=5
-StandardOutput=journal
-StandardError=journal
-
-# Environment
-Environment=LOG_LEVEL=info
-
-# Resource limits
-LimitNOFILE=65536
-
-[Install]
-WantedBy=default.target

+ 1 - 2
systemd/user/smartbotic-webserver.service

@@ -1,8 +1,7 @@
 [Unit]
 Description=SmartBotic WebServer Service
 Documentation=https://github.com/smartbotic/smartbotic
-After=network.target smartbotic-database.service
-Requires=smartbotic-database.service
+After=network.target
 
 [Service]
 Type=simple

+ 1 - 1
systemd/user/smartbotic.target

@@ -1,7 +1,7 @@
 [Unit]
 Description=SmartBotic All Services
 Documentation=https://github.com/smartbotic/smartbotic
-Wants=smartbotic-database.service smartbotic-webserver.service smartbotic-runner.service
+Wants=smartbotic-webserver.service smartbotic-runner.service
 
 [Install]
 WantedBy=default.target