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)
|