Andre Stoebe wrote: > On 05.08.2022 18:28, Omar Polo wrote: >> which version? are you using some custom flags in /etc/rc.conf.local? >> By any chance, did you enabled(/uncommented) the `pidfile' directive >> in /etc/turnserver.conf? > > I'm also running 4.5.2p2 on OpenBSD 7.1-stable without any custom flags > in /etc/rc.conf.local. The following is logged to syslog after startup: > > turnserver: 0: : Cannot create pid file: /var/run/turnserver.pid > turnserver: 0: : pid file created: /var/tmp/turnserver.pid > > And the pidfile exists: > > $ ls -l /tmp/turnserver.pid > -rw-r--r-- 1 _turnserver wheel 6 Aug 5 22:18 /tmp/turnserver.pid > > I certainly don't have pidfile set in /etc/turnserver.conf, but maybe > any of these options I use are responsible for this: > > # egrep -v -e '^#' -e '^$' /etc/turnserver.conf | cut -d= -f1 | sort -u > alt-listening-port > listening-ip > no-cli > no-dtls > no-multicast-peers > no-software-attribute > no-tcp > no-tcp-relay > no-tls > realm > relay-ip > static-auth-secret > syslog > use-auth-secret > > I have to check this in more detail tomorrow.
So, I removed all options and the pidfile is still created: # egrep -v -e '^#' -e '^$' /etc/turnserver.conf # ls -l /tmp/turnserver.pid ls: /tmp/turnserver.pid: No such file or directory # rcctl start turnserver turnserver(ok) # ls -l /tmp/turnserver.pid -rw-r--r-- 1 _turnserver wheel 6 Aug 6 01:15 /tmp/turnserver.pid You really don't see the same behaviour, Omar? I don't have anything set, neither in /etc/rc.conf.local nor in /etc/rc.d/turnserver.
