mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
net-misc/i2pd: adjust systemd .service to point to /usr/bin/i2pd
Package-Manager: portage-2.2.26 RepoMan-Options: --ignore-arches
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=C++ daemon for accessing the I2P network
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Restart=on-abnormal
|
||||
PIDFile=/var/run/i2pd.pid
|
||||
User=i2pd
|
||||
Group=i2pd
|
||||
PermissionsStartOnly=yes
|
||||
ExecStartPre=/bin/touch /var/run/i2pd.pid /var/log/i2pd.log
|
||||
ExecStartPre=/bin/chown i2pd:i2pd /run/i2pd.pid /var/log/i2pd.log
|
||||
ExecStart=/usr/bin/i2pd --conf=/etc/i2pd/i2pd.conf --tunconf=/etc/i2pd/tunnels.cfg
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -68,7 +68,7 @@ src_install() {
|
||||
dodir /usr/share/i2pd
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
systemd_newunit "${FILESDIR}/${PN}-2.4.0.service" "${PN}.service"
|
||||
doenvd "${FILESDIR}/99${PN}"
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotate" "${PN}"
|
||||
Reference in New Issue
Block a user