Summary: | net-im/coturn: install systemd unit file | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michael Jones <gentoo> |
Component: | Current packages | Assignee: | Andreas Schürch <nativemad> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | systemd |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 448882 |
Description
Michael Jones
2017-01-10 19:58:31 UTC
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! |