mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-24 04:37:37 +01:00
Added systemd support for debian package
This commit is contained in:
parent
a8778e358d
commit
17a9c58a63
3 changed files with 19 additions and 1 deletions
1
debian/control
vendored
1
debian/control
vendored
|
@ -5,6 +5,7 @@ Maintainer: hagen <hagen@i2pmail.org>
|
|||
Build-Depends: debhelper (>= 9.0.0), dpkg-dev (>= 1.16.1~),
|
||||
gcc (>= 4.7) | clang (>= 3.3),
|
||||
libboost-system-dev (>= 1.46),
|
||||
dh-systemd (>= 1.5),
|
||||
libboost-date-time-dev,
|
||||
libboost-filesystem-dev,
|
||||
libboost-program-options-dev,
|
||||
|
|
17
debian/i2pd.service
vendored
Normal file
17
debian/i2pd.service
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=I2P Router written in C++
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/default/i2pd
|
||||
User=i2pd
|
||||
Group=i2pd
|
||||
ExecStart=/usr/sbin/i2pd --pidfile=/var/run/i2pd/i2pd.pid --service --conf=/etc/i2pd/i2pd.conf --tunconf=/etc/i2pd/tunnels.conf ${DAEMON_OPTS}
|
||||
Restart=on-failure
|
||||
|
||||
# If you have problems with hunging i2pd, you can try enable this
|
||||
#LimitNOFILE=4096
|
||||
PrivateDevices=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
2
debian/rules
vendored
2
debian/rules
vendored
|
@ -11,7 +11,7 @@ CXXFLAGS+=$(CPPFLAGS)
|
|||
PREFIX=/usr
|
||||
|
||||
%:
|
||||
dh $@ --parallel
|
||||
dh $@ --with systemd --parallel
|
||||
|
||||
override_dh_strip:
|
||||
dh_strip --dbg-package=i2pd-dbg
|
||||
|
|
Loading…
Add table
Reference in a new issue