/var/log im tmpfs - automatisch Unterverzeichnisse anlegen
Ralph Meyer
ralph at schosemail.de
Sun Feb 4 12:27:24 CET 2018
Ich hab schon mehrmals geantwortet, bekomm aber nur
Your mail to 'Linux' with the subject
Re: /var/log im tmpfs - automatisch Unterverzeichnisse anlegen
Is being held until the list moderator can review it for approval.
The reason it is being held:
Message has a suspicious header
Das gehört in systemd-tmpfiles
Ralph
----- Am 4. Feb 2018 um 12:14 schrieb Florian Lohoff f at zz.de:
> On Thu, Feb 01, 2018 at 10:24:44PM +0100, Stefan U. Hegner wrote:
>> Moin Flo
>> Aber kann ich das direkt in der
>>
>> /lib/systemd/system/nginx.service
>>
>> unterbringen?
>
> So hätte ich das gemacht
>
>> # Create log directory if not available
>> if [ -d /var/log/nginx ]; then
>> echo "nginx logdir already exists.";
>> else
>> mkdir /var/log/nginx;
>> fi;
>
> mkdir -f /var/log/nginx
>
> erzeugt es wenn es nicht da ist und failed nicht wenn es schon da ist.
> Alternativ auch
>
> [ ! -d /var/log/nginx ] || mkdir /var/log/nginx
>
>
>> ExecStartPre= /usr/sbin/nginx -t -q -g 'daemon on; master_process on;'
>> ExecStart= /usr/sbin/nginx -g 'daemon on; master_process on;'
>
> IMHO kannst du ExecStartPre mehrfach angeben die dann nacheinander
> ausgeführt werden.
>
> Flo
> --
> Florian Lohoff f at zz.de
> UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away
>
> --
> Linux mailing list Linux at lug-owl.de
> subscribe/unsubscribe: http://lug-owl.de/mailman/listinfo/linux
> Hinweise zur Nutzung: http://www.lug-owl.de/Mailingliste/hints.epo
More information about the Linux
mailing list