OpenBCM V1.07b12 (Linux)

Packet Radio Mailbox

IW8PGT

[Mendicino(CS)-Italy]

 Login: GUEST





  
PE1RRR > PACKET   02.03.20 00:26l 62 Lines 1493 Bytes #999 (0) @ WW
BID : 5453_PE1RRR
Read: GUEST
Subj: Starting linbpq from systemd (howto)
Path: IW8PGT<LU4ECL<JE7YGF<JH4XSY<N3HYM<IK5FKA<PE1RRR
Sent: 200212/0109Z 5453@PE1RRR.#NBW.NLD.EURO LinBPQ6.0.19

Starting linbpq from systemd
============================

Create the file linbpq.service with the following contents:

[Unit]
After=network.target

[Service]
ExecStart=/bin/bash /home/bpq/node/runbpq
Restart=always

[Install]
WantedBy=multi-user.target


Edit the ExecStart path to reflect your own location of linbpq, and put the following runbpq script into that directory as well.

Put linbpq.service into the /etc/systemd/system/ directory

	sudo mv ./linbpq.service /etc/systemd/system/
	cd /etc/systemd/system/

Donâ€Öt forget to set execute permissions on the runbpq script:

	sudo chmod +x runbpq

Create the file runbpq with the following contents:

# Directory of linBPQ installation
cd /home/bpq/node

# I have a bluetooth TNC (mobilink), 
# this is commented out but left as example in case you need it.
#sudo rfcomm bind /dev/rfcomm0 98:D3:32:70:xx:xx

# I run BPQ under its own user ID (bpq). Edit as necessary
# For users of the Pi, the account you use is probably 'pi'
#sudo -u pi mv linbpq.new linbpq
sudo -u bpq mv linbpq.new linbpq
#sudo -u pi ./linbpq
sudo -u bpq ./linbpq

Edit the runbpq script and adjust the parameter after the ‘sudo -uâ€Ö to reflect the user ID you are going to use.

Then run

	sudo systemctl daemon-reload
	sudo systemctl enable linbpq.service

Which does this:

Created symlink /etc/systemd/system/multi-user.target.wants/linbpq.service → /etc/systemd/system/linbpq.service.

And that should be it.

73's 
Red
PE1RRR
http://eindhoven.space/



Read previous mail | Read next mail


 12.05.2024 01:48:48lGo back Go up