From b97a98e2b771f640af3952069f41674b02dc6085 Mon Sep 17 00:00:00 2001 From: Ben Duncan <5178243+benduncan@users.noreply.github.com> Date: Wed, 18 Mar 2026 00:53:34 +0000 Subject: [PATCH] refactor: rename systemd units and logrotate from hive to spinifex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename all build/systemd/hive-* → spinifex-* - Rename build/logrotate/hive → spinifex - Update unit contents: descriptions, dependencies, user/group, paths - Binary path set to /usr/local/bin/spx --- build/logrotate/{hive => spinifex} | 2 +- build/systemd/hive-awsgw.service | 22 ---------------------- build/systemd/hive-daemon.service | 21 --------------------- build/systemd/hive-nats.service | 17 ----------------- build/systemd/hive-predastore.service | 22 ---------------------- build/systemd/hive-ui.service | 16 ---------------- build/systemd/hive-viperblock.service | 21 --------------------- build/systemd/hive-vpcd.service | 19 ------------------- build/systemd/hive.target | 8 -------- build/systemd/spinifex-awsgw.service | 22 ++++++++++++++++++++++ build/systemd/spinifex-daemon.service | 21 +++++++++++++++++++++ build/systemd/spinifex-nats.service | 17 +++++++++++++++++ build/systemd/spinifex-predastore.service | 22 ++++++++++++++++++++++ build/systemd/spinifex-ui.service | 16 ++++++++++++++++ build/systemd/spinifex-viperblock.service | 21 +++++++++++++++++++++ build/systemd/spinifex-vpcd.service | 19 +++++++++++++++++++ build/systemd/spinifex.target | 8 ++++++++ 17 files changed, 147 insertions(+), 147 deletions(-) rename build/logrotate/{hive => spinifex} (79%) delete mode 100644 build/systemd/hive-awsgw.service delete mode 100644 build/systemd/hive-daemon.service delete mode 100644 build/systemd/hive-nats.service delete mode 100644 build/systemd/hive-predastore.service delete mode 100644 build/systemd/hive-ui.service delete mode 100644 build/systemd/hive-viperblock.service delete mode 100644 build/systemd/hive-vpcd.service delete mode 100644 build/systemd/hive.target create mode 100644 build/systemd/spinifex-awsgw.service create mode 100644 build/systemd/spinifex-daemon.service create mode 100644 build/systemd/spinifex-nats.service create mode 100644 build/systemd/spinifex-predastore.service create mode 100644 build/systemd/spinifex-ui.service create mode 100644 build/systemd/spinifex-viperblock.service create mode 100644 build/systemd/spinifex-vpcd.service create mode 100644 build/systemd/spinifex.target diff --git a/build/logrotate/hive b/build/logrotate/spinifex similarity index 79% rename from build/logrotate/hive rename to build/logrotate/spinifex index be7c8784d..e9482aeff 100644 --- a/build/logrotate/hive +++ b/build/logrotate/spinifex @@ -1,4 +1,4 @@ -/var/log/hive/*.log { +/var/log/spinifex/*.log { daily rotate 14 compress diff --git a/build/systemd/hive-awsgw.service b/build/systemd/hive-awsgw.service deleted file mode 100644 index cdbfe1e1f..000000000 --- a/build/systemd/hive-awsgw.service +++ /dev/null @@ -1,22 +0,0 @@ -[Unit] -Description=Hive AWS Gateway -PartOf=hive.target -After=hive-nats.service hive-daemon.service -Requires=hive-nats.service - -[Service] -Type=simple -User=hive -Group=hive -ExecStartPre=/bin/sh -c 'for i in $(seq 1 30); do nc -z 127.0.0.1 4222 && exit 0; sleep 1; done; exit 1' -ExecStart=/usr/local/bin/hive service awsgw start -Restart=on-failure -RestartSec=5 -OOMScoreAdjust=-500 -Environment=HIVE_CONFIG_PATH=/etc/hive/hive.toml -Environment=HIVE_BASE_DIR=/var/lib/hive/ -Environment=HIVE_AWSGW_TLS_CERT=/etc/hive/server.pem -Environment=HIVE_AWSGW_TLS_KEY=/etc/hive/server.key - -[Install] -WantedBy=hive.target diff --git a/build/systemd/hive-daemon.service b/build/systemd/hive-daemon.service deleted file mode 100644 index 1aa2efcf8..000000000 --- a/build/systemd/hive-daemon.service +++ /dev/null @@ -1,21 +0,0 @@ -[Unit] -Description=Hive Daemon (VM Orchestration) -PartOf=hive.target -After=hive-nats.service hive-viperblock.service -Requires=hive-nats.service - -[Service] -Type=simple -User=hive -Group=hive -ExecStartPre=/bin/sh -c 'for i in $(seq 1 30); do nc -z 127.0.0.1 4222 && exit 0; sleep 1; done; exit 1' -ExecStart=/usr/local/bin/hive service hive start -Restart=on-failure -RestartSec=5 -OOMScoreAdjust=-500 -Environment=HIVE_CONFIG_PATH=/etc/hive/hive.toml -Environment=HIVE_BASE_DIR=/var/lib/hive/hive/ -Environment=HIVE_WAL_DIR=/var/lib/hive/hive/ - -[Install] -WantedBy=hive.target diff --git a/build/systemd/hive-nats.service b/build/systemd/hive-nats.service deleted file mode 100644 index b686b1454..000000000 --- a/build/systemd/hive-nats.service +++ /dev/null @@ -1,17 +0,0 @@ -[Unit] -Description=Hive NATS Message Bus -PartOf=hive.target -Before=hive-predastore.service hive-daemon.service hive-awsgw.service hive-vpcd.service - -[Service] -Type=simple -User=hive -Group=hive -ExecStart=/usr/local/bin/hive service nats start -Restart=on-failure -RestartSec=5 -OOMScoreAdjust=-500 -Environment=HIVE_CONFIG_PATH=/etc/hive/nats/nats.conf - -[Install] -WantedBy=hive.target diff --git a/build/systemd/hive-predastore.service b/build/systemd/hive-predastore.service deleted file mode 100644 index 0463fb457..000000000 --- a/build/systemd/hive-predastore.service +++ /dev/null @@ -1,22 +0,0 @@ -[Unit] -Description=Hive Predastore (S3-compatible Object Storage) -PartOf=hive.target -After=hive-nats.service -Requires=hive-nats.service - -[Service] -Type=simple -User=hive -Group=hive -ExecStartPre=/bin/sh -c 'for i in $(seq 1 30); do nc -z 127.0.0.1 4222 && exit 0; sleep 1; done; exit 1' -ExecStart=/usr/local/bin/hive service predastore start -Restart=on-failure -RestartSec=5 -OOMScoreAdjust=-500 -Environment=HIVE_PREDASTORE_CONFIG_PATH=/etc/hive/predastore/predastore.toml -Environment=HIVE_PREDASTORE_BASE_PATH=/var/lib/hive/predastore/ -Environment=HIVE_PREDASTORE_TLS_CERT=/etc/hive/server.pem -Environment=HIVE_PREDASTORE_TLS_KEY=/etc/hive/server.key - -[Install] -WantedBy=hive.target diff --git a/build/systemd/hive-ui.service b/build/systemd/hive-ui.service deleted file mode 100644 index 09ec312a8..000000000 --- a/build/systemd/hive-ui.service +++ /dev/null @@ -1,16 +0,0 @@ -[Unit] -Description=Hive Web UI -PartOf=hive.target -After=hive-awsgw.service - -[Service] -Type=simple -User=hive -Group=hive -ExecStart=/usr/local/bin/hive service hive-ui start -Restart=on-failure -RestartSec=5 -OOMScoreAdjust=-500 - -[Install] -WantedBy=hive.target diff --git a/build/systemd/hive-viperblock.service b/build/systemd/hive-viperblock.service deleted file mode 100644 index 0c61ddc07..000000000 --- a/build/systemd/hive-viperblock.service +++ /dev/null @@ -1,21 +0,0 @@ -[Unit] -Description=Hive Viperblock (Block Storage) -PartOf=hive.target -After=hive-nats.service hive-predastore.service -Requires=hive-nats.service - -[Service] -Type=simple -User=hive -Group=hive -ExecStartPre=/bin/sh -c 'for i in $(seq 1 30); do nc -z 127.0.0.1 4222 && exit 0; sleep 1; done; exit 1' -ExecStart=/usr/local/bin/hive service viperblock start -Restart=on-failure -RestartSec=5 -OOMScoreAdjust=-500 -EnvironmentFile=/etc/hive/systemd.env -Environment=HIVE_CONFIG_PATH=/etc/hive/hive.toml -Environment=HIVE_BASE_DIR=/var/lib/hive/viperblock/ - -[Install] -WantedBy=hive.target diff --git a/build/systemd/hive-vpcd.service b/build/systemd/hive-vpcd.service deleted file mode 100644 index 1e9bb10f7..000000000 --- a/build/systemd/hive-vpcd.service +++ /dev/null @@ -1,19 +0,0 @@ -[Unit] -Description=Hive VPC Daemon (OVN Networking) -PartOf=hive.target -After=hive-nats.service hive-daemon.service -Requires=hive-nats.service - -[Service] -Type=simple -User=hive -Group=hive -ExecStartPre=/bin/sh -c 'for i in $(seq 1 30); do nc -z 127.0.0.1 4222 && exit 0; sleep 1; done; exit 1' -ExecStart=/usr/local/bin/hive service vpcd start -Restart=on-failure -RestartSec=5 -OOMScoreAdjust=-500 -Environment=HIVE_CONFIG_PATH=/etc/hive/hive.toml - -[Install] -WantedBy=hive.target diff --git a/build/systemd/hive.target b/build/systemd/hive.target deleted file mode 100644 index a790aee41..000000000 --- a/build/systemd/hive.target +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=Hive Infrastructure Platform -After=network-online.target -Wants=network-online.target -Wants=hive-nats.service hive-predastore.service hive-viperblock.service hive-daemon.service hive-awsgw.service hive-vpcd.service hive-ui.service - -[Install] -WantedBy=multi-user.target diff --git a/build/systemd/spinifex-awsgw.service b/build/systemd/spinifex-awsgw.service new file mode 100644 index 000000000..385803bc9 --- /dev/null +++ b/build/systemd/spinifex-awsgw.service @@ -0,0 +1,22 @@ +[Unit] +Description=Spinifex AWS Gateway +PartOf=spinifex.target +After=spinifex-nats.service spinifex-daemon.service +Requires=spinifex-nats.service + +[Service] +Type=simple +User=spinifex +Group=spinifex +ExecStartPre=/bin/sh -c 'for i in $(seq 1 30); do nc -z 127.0.0.1 4222 && exit 0; sleep 1; done; exit 1' +ExecStart=/usr/local/bin/spx service awsgw start +Restart=on-failure +RestartSec=5 +OOMScoreAdjust=-500 +Environment=SPINIFEX_CONFIG_PATH=/etc/spinifex/spinifex.toml +Environment=SPINIFEX_BASE_DIR=/var/lib/spinifex/ +Environment=SPINIFEX_AWSGW_TLS_CERT=/etc/spinifex/server.pem +Environment=SPINIFEX_AWSGW_TLS_KEY=/etc/spinifex/server.key + +[Install] +WantedBy=spinifex.target diff --git a/build/systemd/spinifex-daemon.service b/build/systemd/spinifex-daemon.service new file mode 100644 index 000000000..35e718560 --- /dev/null +++ b/build/systemd/spinifex-daemon.service @@ -0,0 +1,21 @@ +[Unit] +Description=Spinifex Daemon (VM Orchestration) +PartOf=spinifex.target +After=spinifex-nats.service spinifex-viperblock.service +Requires=spinifex-nats.service + +[Service] +Type=simple +User=spinifex +Group=spinifex +ExecStartPre=/bin/sh -c 'for i in $(seq 1 30); do nc -z 127.0.0.1 4222 && exit 0; sleep 1; done; exit 1' +ExecStart=/usr/local/bin/spx service spinifex start +Restart=on-failure +RestartSec=5 +OOMScoreAdjust=-500 +Environment=SPINIFEX_CONFIG_PATH=/etc/spinifex/spinifex.toml +Environment=SPINIFEX_BASE_DIR=/var/lib/spinifex/spinifex/ +Environment=SPINIFEX_WAL_DIR=/var/lib/spinifex/spinifex/ + +[Install] +WantedBy=spinifex.target diff --git a/build/systemd/spinifex-nats.service b/build/systemd/spinifex-nats.service new file mode 100644 index 000000000..42797b81d --- /dev/null +++ b/build/systemd/spinifex-nats.service @@ -0,0 +1,17 @@ +[Unit] +Description=Spinifex NATS Message Bus +PartOf=spinifex.target +Before=spinifex-predastore.service spinifex-daemon.service spinifex-awsgw.service spinifex-vpcd.service + +[Service] +Type=simple +User=spinifex +Group=spinifex +ExecStart=/usr/local/bin/spx service nats start +Restart=on-failure +RestartSec=5 +OOMScoreAdjust=-500 +Environment=SPINIFEX_CONFIG_PATH=/etc/spinifex/nats/nats.conf + +[Install] +WantedBy=spinifex.target diff --git a/build/systemd/spinifex-predastore.service b/build/systemd/spinifex-predastore.service new file mode 100644 index 000000000..54f2ce34c --- /dev/null +++ b/build/systemd/spinifex-predastore.service @@ -0,0 +1,22 @@ +[Unit] +Description=Spinifex Predastore (S3-compatible Object Storage) +PartOf=spinifex.target +After=spinifex-nats.service +Requires=spinifex-nats.service + +[Service] +Type=simple +User=spinifex +Group=spinifex +ExecStartPre=/bin/sh -c 'for i in $(seq 1 30); do nc -z 127.0.0.1 4222 && exit 0; sleep 1; done; exit 1' +ExecStart=/usr/local/bin/spx service predastore start +Restart=on-failure +RestartSec=5 +OOMScoreAdjust=-500 +Environment=SPINIFEX_PREDASTORE_CONFIG_PATH=/etc/spinifex/predastore/predastore.toml +Environment=SPINIFEX_PREDASTORE_BASE_PATH=/var/lib/spinifex/predastore/ +Environment=SPINIFEX_PREDASTORE_TLS_CERT=/etc/spinifex/server.pem +Environment=SPINIFEX_PREDASTORE_TLS_KEY=/etc/spinifex/server.key + +[Install] +WantedBy=spinifex.target diff --git a/build/systemd/spinifex-ui.service b/build/systemd/spinifex-ui.service new file mode 100644 index 000000000..db2fc1bcd --- /dev/null +++ b/build/systemd/spinifex-ui.service @@ -0,0 +1,16 @@ +[Unit] +Description=Spinifex Web UI +PartOf=spinifex.target +After=spinifex-awsgw.service + +[Service] +Type=simple +User=spinifex +Group=spinifex +ExecStart=/usr/local/bin/spx service spinifex-ui start +Restart=on-failure +RestartSec=5 +OOMScoreAdjust=-500 + +[Install] +WantedBy=spinifex.target diff --git a/build/systemd/spinifex-viperblock.service b/build/systemd/spinifex-viperblock.service new file mode 100644 index 000000000..684edc791 --- /dev/null +++ b/build/systemd/spinifex-viperblock.service @@ -0,0 +1,21 @@ +[Unit] +Description=Spinifex Viperblock (Block Storage) +PartOf=spinifex.target +After=spinifex-nats.service spinifex-predastore.service +Requires=spinifex-nats.service + +[Service] +Type=simple +User=spinifex +Group=spinifex +ExecStartPre=/bin/sh -c 'for i in $(seq 1 30); do nc -z 127.0.0.1 4222 && exit 0; sleep 1; done; exit 1' +ExecStart=/usr/local/bin/spx service viperblock start +Restart=on-failure +RestartSec=5 +OOMScoreAdjust=-500 +EnvironmentFile=/etc/spinifex/systemd.env +Environment=SPINIFEX_CONFIG_PATH=/etc/spinifex/spinifex.toml +Environment=SPINIFEX_BASE_DIR=/var/lib/spinifex/viperblock/ + +[Install] +WantedBy=spinifex.target diff --git a/build/systemd/spinifex-vpcd.service b/build/systemd/spinifex-vpcd.service new file mode 100644 index 000000000..3520e3a50 --- /dev/null +++ b/build/systemd/spinifex-vpcd.service @@ -0,0 +1,19 @@ +[Unit] +Description=Spinifex VPC Daemon (OVN Networking) +PartOf=spinifex.target +After=spinifex-nats.service spinifex-daemon.service +Requires=spinifex-nats.service + +[Service] +Type=simple +User=spinifex +Group=spinifex +ExecStartPre=/bin/sh -c 'for i in $(seq 1 30); do nc -z 127.0.0.1 4222 && exit 0; sleep 1; done; exit 1' +ExecStart=/usr/local/bin/spx service vpcd start +Restart=on-failure +RestartSec=5 +OOMScoreAdjust=-500 +Environment=SPINIFEX_CONFIG_PATH=/etc/spinifex/spinifex.toml + +[Install] +WantedBy=spinifex.target diff --git a/build/systemd/spinifex.target b/build/systemd/spinifex.target new file mode 100644 index 000000000..dcc4d5896 --- /dev/null +++ b/build/systemd/spinifex.target @@ -0,0 +1,8 @@ +[Unit] +Description=Spinifex Infrastructure Platform +After=network-online.target +Wants=network-online.target +Wants=spinifex-nats.service spinifex-predastore.service spinifex-viperblock.service spinifex-daemon.service spinifex-awsgw.service spinifex-vpcd.service spinifex-ui.service + +[Install] +WantedBy=multi-user.target