more fixes for graywolf

This commit is contained in:
David Young
2026-05-30 07:03:56 -06:00
parent cf3e3ab8db
commit 723f1eee34
2 changed files with 16 additions and 1 deletions

View File

@@ -71,4 +71,4 @@ steps=mkdir build, cd build, cmake -D CMAKE_INSTALL_PREFIX=/opt/JS8Call-improved
version=0.13.13 version=0.13.13
git=https://github.com/chrissnell/graywolf.git git=https://github.com/chrissnell/graywolf.git
install=$HOME/.local/bin/graywolf install=$HOME/.local/bin/graywolf
steps=getent group dialout || sudo groupadd dialout, make all, install -m 755 bin/graywolf $HOME/.local/bin/graywolf, install -m 755 bin/graywolf-modem $HOME/.local/bin/graywolf-modem, mkdir -p $HOME/.local/share/graywolf, sed -i "s|/usr/bin/graywolf|$HOME/.local/bin/graywolf|g" packaging/systemd/graywolf.service, sed -i "s|/var/lib/graywolf|$HOME/.local/share/graywolf|g" packaging/systemd/graywolf.service, sed -i "/^\[Service\]/a User=$USER" packaging/systemd/graywolf.service, printf '\n[Install]\nWantedBy=multi-user.target\n' >> packaging/systemd/graywolf.service, sudo install -m 644 packaging/systemd/graywolf.service /etc/systemd/system/graywolf.service, sudo packaging/scripts/postinstall.sh, sudo systemctl enable --now graywolf steps=getent group dialout || sudo groupadd dialout, make all, install -m 755 bin/graywolf $HOME/.local/bin/graywolf, install -m 755 bin/graywolf-modem $HOME/.local/bin/graywolf-modem, mkdir -p $HOME/.local/share/graywolf, sed "s|HAMPACK_USER|$USER|g; s|HAMPACK_HOME|$HOME|g" $HOME/.local/share/HamPack/systemd/graywolf.service > /tmp/graywolf.service, sudo install -m 644 /tmp/graywolf.service /etc/systemd/system/graywolf.service, sudo systemctl daemon-reload, sudo systemctl enable --now graywolf

15
systemd/graywolf.service Normal file
View File

@@ -0,0 +1,15 @@
[Unit]
Description=Graywolf APRS radio transceiver and gateway
Documentation=https://github.com/chrissnell/graywolf
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=HAMPACK_USER
ExecStart=HAMPACK_HOME/.local/bin/graywolf -config HAMPACK_HOME/.local/share/graywolf/graywolf.db -history-db HAMPACK_HOME/.local/share/graywolf/graywolf-history.db -tile-cache-dir HAMPACK_HOME/.local/share/graywolf/tiles -modem HAMPACK_HOME/.local/bin/graywolf-modem -http 0.0.0.0:8080
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target