TIP: Click on subject to list as thread! ANSI
echo: cbm
to: Dropnine
from: Dropnine
date: 2017-04-06 18:31:32
subject: Re: Using tcpser on a Pi for telnet gateway to C64?

On Thursday, April 6, 2017 at 6:43:36 PM UTC-6, Dropnine wrote:
> On Thursday, March 30, 2017 at 12:48:34 PM UTC-6, Dropnine wrote:
> 
> I was asked to correct a part that will stop you from automating
tcpser on boot.  The error is in the type portion of the
serialBridge.service text file.
> 
> It should be Type=forking.  If it's anything else, LINUX will end the
thread because it considers the script to have run and maintain its own
PID.
> 
> Sorry for the error.  The serialBridge.service file should look like below.
> 
> Edit your original or just type "rm
/lib/systemd/systemserialBridge.service" to remove the old file and
remake it by doing the following:
>  
> type: sudo vi /lib/systemd/system/serialBridge.service  
> type: i 
> 
> Copy and paste everything between the # mark lines into the editor (or
type it in if you are a better typer than myself): 
> 
> #################### 
> [Unit] 
> Description=Serial to TCP-IP Bridge 
> After=Multi-User.target 
> 
> [Install] 
> WantedBy=Multi-user.target 
> 
> [Service] 
> ExecStart=/home/pi/serialBridge 
> Type=forking 
> ##################### 
> 
> 
> .... Cheers

And... if you're still having an issue, add: Restart=on-abort 
after the Type=forking entry.

If you are using a stand-alone lite raspian on your pi, editing the
/etc/rc.local file and putting the the tcpser command before the "exit
0" line will also accomplish the autostart on boot.  The rc.local file
is read-only so you'll need to change the 
permissions.

Seems to be a few flavours of raspian out there or something is going
bonkers...  Many ways to do an autoboot, as you can see.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
SEEN-BY: 57/0 116/102 130/505 512 153/250 317/2 393/68 633/267 280 640/384
SEEN-BY: 712/620 848 770/0 1 3 100 340 772/0 1 210 500
@PATH: 770/3 1 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.