TIP: Click on subject to list as thread! ANSI
echo: linux
to: ALAN IANSON
from: ALEXEY VISSARIONOV
date: 2020-12-10 08:17:00
subject: systemd

Good ${greeting_time}, Alan!

09 Dec 2020 19:34:52, you wrote to Benny Pedersen:

 BP>> start() {
 BP>> ebegin "Starting binkd"
 BP>> start-stop-daemon --start --user ${BINKD_USER} --exec /usr/bin/binkd
 BP>> --pidfile ${BINKD_PID} -- ${BINKD_OPTIONS} ${BINKD_CFG}
 BP>> eend $?
 BP>> }

Very stupid method...

 AI> The --user option looks interesting. I might be able to use that here
 AI> if my init supports it.

There's another option, which allows running several binkd instances for
different users:

% cat `which fidomailer`
#!/bin/sh
binkdport=`sed -nre '/^iport /{s,.*\s,,g;p}' < $HOME/fido/etc/binkd.conf`
test -z "$binkdport" && binkdport=24554
ss -tunl | grep -q :$binkdport || \
  (binkd -C $HOME/fido/etc/binkd.conf >& /dev/null &) &

% crontab -l | grep fidomailer
*/15 * * * *  fidomailer

And, of course, it doesn't require the root privileges.


--
Alexey V. Vissarionov aka Gremlin from Kremlin
gremlin.ru!gremlin; +vii-cmiii-ccxxix-lxxix-xlii

... :wq!
--- /bin/vi
* Origin: ::1 (2:5020/545)

SOURCE: echomail via QWK@docsplace.org

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™.