From Newsgroup: alt.bbs.synchronet
To: Michael Long
Re: Help starting sbbs under linux
By: Michael Long to alt.bbs.synchronet on Thu Sep 24 2020 06:28 am
From Newsgroup: alt.bbs.synchronet
Hi, I am installing a brand new BBS under Debian. No matter what I do, the "ExecStartPre" keeps tripping me up. I ended up trying to keep it simple and put everything in /sbbs instead of another location and did the systemctl configuration. I was getting an error about not finding the src so I changed it to /sbbs/repo/src since there is where it seems to be now:
ExecStartPre=/sbin/setcap 'cap_net_bind_service=+ep' /sbbs/repo/src/sbbs3/gcc.linux.*.exe.*/sbbs
Now when I start it, I get this:
Sep 24 09:20:15 bbs systemd[1]: Starting Synchronet BBS service...
Sep 24 09:20:15 bbs setcap[21466]: Failed to set capabilities on file `/sbbs/repo/src/sbbs3/gcc.linux.*.exe.*/sbbs' (No such file or directory) Sep 24 09:20:15 bbs setcap[21466]: The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file Sep 24 09:20:15 bbs systemd[1]: sbbs.service: Control process exited, code=exited, status=1/FAILURE
Sep 24 09:20:15 bbs systemd[1]: sbbs.service: Failed with result 'exit-code'. Sep 24 09:20:15 bbs systemd[1]: Failed to start Synchronet BBS service.
And looking at the file, it exists:
root@bbs:/# ls -l /sbbs/repo/src/sbbs3/gcc.linux.*.exe.*/sbbs
-rwxr-xr-x 1 sbbs sbbs 114496 Sep 24 08:26 /sbbs/repo/src/sbbs3/gcc.linux.x64.exe.release/sbbs
Any ideas? Thanks
the src/sbbs3/GNUmakefile now has a "setcap" target (e.g. run "make setcap symlinks") - so you shouldn't need that in your service file.
If you want to keep in your service file, you could try removing the wildcards from the /path/to/sbbs.
digital man
Synchronet/BBS Terminology Definition #28:
FF = Form Feed (ASCII 12, Ctrl-L)
Norco, CA WX: 82.7øF, 39.0% humidity, 2 mph WNW wind, 0.00 inches rain/24hrs --- Synchronet 3.18c-Win32 NewsLink 1.113
* Vertrauen - Riverside County, California -
telnet://vert.synchro.net
--- Synchronet 3.19c-Linux NewsLink 1.113