Commit Graph

9 Commits (openssl)

Author SHA1 Message Date
R4SAS f8ba5b8c63
increase nofile limit in service
Signed-off-by: R4SAS <r4sas@i2pmail.org>
1 year ago
R4SAS 3d7e93a688
systemd: use SIGTERM instead SIGQUIT, indent UPNP code, make client target
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
Zetok Zalbavar 2c9fa2f738
Fix and update i2pd.service
- /var/run on distros with systemd is a symlink to /run , hence the
path changes.

- Remove unnecessary runtime dependency on `/bin/kill` which is
provided by `procps` and might not be available on minimal installs
(e.g. containers). Instead use `/bin/sh` which has a built-in `kill`.

- `PrivateDevices=yes` causes i2pd to fail to start on latest Debian
unstable. Service exits with the following:

```
i2pd.service: Failed to execute command: Operation not permitted
i2pd.service: Failed at step EXEC spawning /usr/sbin/i2pd: Operation not permitted
i2pd.service: Control process exited, code=exited, status=203/EXEC
i2pd.service: Failed with result 'exit-code'.
Failed to start I2P Router written in C++.
```

According to `man systemd.exec` exit code 203 corresponds to the
`execve(2)` system call failing. So it looks like i2pd tries to do
something it shouldn't be doing. The proper fix would be in i2pd, but
who knows how long that would actually take, so to allow people to
actually launch i2pd in meanwhile the line has been removed from the
service file.

Also, surprisingly, right after installing i2pd it started without any
problems, and only after restarting the box i2pd started to fail for no
apparent reason.
5 years ago
R4SAS b7940e0002 add tunnels.d to packages 6 years ago
R4SAS a188de2e5c increase limits by default, fix symbolic links, change rules 6 years ago
yangfl c0436297c2 fix typo in systemd service type 6 years ago
yangfl f06c8710be fix systemd service type 6 years ago
Fabrice Fontaine b0781668e2 Create LogsDirectory in i2pd.service
Create /var/log/i2pd through LogsDirectory parameter of systemd and set
its permission to 0700 through LogsDirectoryMode. Indeed, this directory
must be created with the correct permission as it is used in ExecStart
command

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
6 years ago
yangfl 319d748639 i2pd.service: do not block system shutdown for 10 min 6 years ago