add dinit service

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
ralsei 2023-03-26 05:41:56 +00:00 committed by R4SAS
parent d91d734b5c
commit 71bad23906
No known key found for this signature in database
GPG Key ID: 66F6C87B98EBCFE2

8
contrib/dinit/i2pd Normal file
View File

@ -0,0 +1,8 @@
type = bgprocess
run-as = i2pd
command = /usr/bin/i2pd --conf=/var/lib/i2pd/i2pd.conf --pidfile=/var/lib/i2pd/i2pd.pid --daemon --service
smooth-recovery = true
depends-on = ntpd
# uncomment if you want to use i2pd with yggdrasil
# depends-on = yggdrasil
pid-file = /var/lib/i2pd/i2pd.pid