12345678910111213141516171819202122232425262728293031323334 |
- Subject: Adjust upstream's xinetd support
- Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
- Date: 2021-09-30
- Forwarded: not-needed
- * Use a db path in /var/lib/
- * Run as the _tang system user
- * Use ts(1) to prefix log messages with a timestamp
- --- a/units/tangdx
- +++ b/units/tangdx
- @@ -1,10 +1,10 @@
- service tangd
- {
- port = 8888
- - server_args = /var/db/tang
- + server_args = /var/lib/tang
- server = /usr/libexec/tangdw
- socket_type = stream
- - user = root
- + user = _tang
- wait = no
- log_on_success += USERID
- log_on_failure += USERID
- --- a/units/tangdw
- +++ b/units/tangdw
- @@ -1,4 +1,3 @@
- -#!/bin/sh
- -echo "==================================" >> /var/log/tangd.log
- -echo `date`: >> /var/log/tangd.log
- -/usr/libexec/tangd $1 2>> /var/log/tangd.log
- +#!/bin/bash
- +# bash needed to redirect stderr only
- +/usr/libexec/tangd "$1" 2> >(ts >>/var/log/tangd.log)
|