Direkt zum Hauptinhalt

Aktor: spacermake (Primary-Secondary mit Nutzungsprotokoll)

spacermake installieren

mkdir -p /opt/fabinfra/adapters/
git clone https://github.com/LastExceed/spacermake.git
cd spacermake/
cargo build --release

Dateien vorbereiten (Logs & Configs)

Das Script ist aktuell nicht optimal konfigurierbar und muss deshalb vor dem Nutzen und geeignet angepasst und kompiliert werden (Pfade)!

cd /opt/fabinfra/adapters/spacermake/target/release/
touch master-slave_relations.toml
touch slave_properties.toml

mkdir -p /root/fabfire/
touch /root/fabfire/config.toml

touch /root/machinelog.csv
touch /root/machinelog_debug.csv

spacermake als systemd Service

[Unit]
Description=FabAccess Primary-Secondary Actor with usage log protocol
Require=network-online.target
After=network-online.target

[Service]
Type=simple
User=bffh
Group=bffh
ExecStart=/opt/fabinfra/adapters/spacermake/target/release/spacermake
Restart=always
WorkingDirectory=/opt/fabinfra/adapters/spacermake

[Install]
WantedBy=multi-user.target