Skip to content

Commit 27f9b01

Browse files
Paul Cintelligentwolf
andcommitted
Installer auto-starts service and fixes platform detection output
Co-Authored-By: CodeWolf <paul@wolf.uk.com> Co-Authored-By: Wolf Software Systems Ltd <paul@wolf.uk.com>
1 parent e5a9b5b commit 27f9b01

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

‎install.sh‎

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ build_from_source() {
122122
# --- Main ---
123123

124124
detect_platform
125-
info "Detected platform: ${ARCH} (${LIBC})"
125+
info "Detected platform: ${ARCH}"
126126

127127
# Try pre-built binary first, fall back to building from source.
128128
if ! download_binary; then
@@ -226,6 +226,17 @@ else
226226
info " CRIU: not installed (optional — needed for process hibernation)"
227227
fi
228228

229+
# Start the service.
230+
info "Starting wolfram service..."
231+
systemctl start wolfram
232+
233+
# Verify it's running.
234+
if systemctl is-active --quiet wolfram 2>/dev/null; then
235+
info "Wolfram is running"
236+
else
237+
warn "Wolfram failed to start — check: journalctl -u wolfram -e"
238+
fi
239+
229240
# Done.
230241
echo ""
231242
info "Installation complete!"
@@ -235,10 +246,9 @@ echo " Config: $CONFIG_DIR/config.toml"
235246
echo " Service: $SERVICE_FILE"
236247
echo " Data: $DATA_DIR"
237248
echo ""
238-
echo " Edit config: sudo nano $CONFIG_DIR/config.toml"
239-
echo " Start now: sudo systemctl start wolfram"
240-
echo " View logs: sudo journalctl -u wolfram -f"
241-
echo " Check status: sudo systemctl status wolfram"
242-
echo " Stop: sudo systemctl stop wolfram"
243-
echo " Uninstall: sudo ./uninstall.sh"
249+
echo " View logs: journalctl -u wolfram -f"
250+
echo " Check savings: cat /var/lib/wolfram/stats.json"
251+
echo " Check status: systemctl status wolfram"
252+
echo " Stop: systemctl stop wolfram"
253+
echo " Reconfigure: nano $CONFIG_DIR/config.toml && systemctl restart wolfram"
244254
echo ""

0 commit comments

Comments
 (0)