systemd issue in centos 7

Not working pre-create pid-file dir (/run/i2pd).
It fixed with one of this ways:

> PermissionsStartOnly=True
or 
> ExecStartPre=/bin/mkdir -p -m 0700 /var/run/i2pd
> ExecStartPre=/bin/chown i2pd: /var/run/i2pd

First way is prefer because RuntimeDirectory's options already used.
This commit is contained in:
BOPOHA 2018-02-01 23:21:20 +01:00 committed by GitHub
parent 180730f9cf
commit ce57a130fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@ After=network.target
[Service]
User=i2pd
Group=i2pd
PermissionsStartOnly=True
RuntimeDirectory=i2pd
RuntimeDirectoryMode=0700
Type=simple