Please install a systemd unit file for net-im/coturn. An example unit file is as follows: [Unit] Description=turnserver daemon After=networking.target [Service] Type=simple ExecStart=/usr/bin/turnserver Restart=always RestartSec=30s [Install] WantedBy=multi-user.target install in the ebuild like such: systemd_dounit "${FILESDIR}"/${PN}.service
I added a unit file now, but it got a bit more complex than the example above because of logging and logrotate.... Thanks
Thanks! Out of curiosity, why use ExecStartPre=/bin/bash -c "[ -d /var/run/turnserver ] || mkdir /var/run/turnserver && chown turnserver:turnserver /var/run/turnserver" Instead of systemd's tmpfilesd system? https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
(In reply to Michael Jones from comment #2) > Thanks! > > Out of curiosity, why use > > ExecStartPre=/bin/bash -c "[ -d /var/run/turnserver ] || mkdir > /var/run/turnserver && chown turnserver:turnserver /var/run/turnserver" > > Instead of systemd's tmpfilesd system? > > https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html I simply wasn't aware of it and after using ExecStartPre for the logfile I thought it's straight forward.... I will keep it in mind for the next bump, thanks for pointing that out!