Hi:
Sharing this as it seems to be working for me. Use at you own risk, I am not a developer or programmer.?
Have been able to use instructions below? with 0.4.1 Ubuntu 22.04 (Raspberry PI 4).? The (dratsrepeater.service) code is as follows and is the same I was using with HamPI 2.01?? Which I setup some years ago.? The D-Rats version there was 0.3.9 beta 3.
Where I found the code for dratsrepetaer.service at that time, Frankly I do not remember. Probably from a post of D-Rats developers, Hampi developer, or D-Rats users.? Anyway the code still works with exception of SysVStartPriority=99 --which was removed from systemd. I received a message stating it was removed and was ignored. So I removed from dratsrepeater.service
Remember dratsrepeater.service (or the name you choose) have to be copied into /etc/systemd/system
User, path, python version depends on your settings, obviously.
[Unit]
Description=D-Rats Repeater Proxy
After=syslog.target network.target
[Service]
Type=simple
#Edit the next line to name the user you want the d-rats repeater to run as. The user must exits.
User=dratsrepeater
ExecStart=/usr/bin/python3.11 /home/dratsrepeater/D-Rats/d-rats_repeater.py -C
TimeoutSec=0
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
# systemctl start dratsrepeater
# systemctl status dratsrepeater
# systemctl enable dratsrepeater? {will allow the service to start automatically -- beware!!}??
Well, observations and concerns regarding security are very important.? Not sure which other instruction should be included or changed in dratsrepeater.service.? Hope this will start a constructive discussion that could produce a robust final file.?
73'
Edfel
KP4AJ