more fixes for graywolf
This commit is contained in:
@@ -71,4 +71,4 @@ steps=mkdir build, cd build, cmake -D CMAKE_INSTALL_PREFIX=/opt/JS8Call-improved
|
||||
version=0.13.13
|
||||
git=https://github.com/chrissnell/graywolf.git
|
||||
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
15
systemd/graywolf.service
Normal 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
|
||||
Reference in New Issue
Block a user