From 1e7ab7f5eff78c2421bbad5b8b4e5451de7115eb Mon Sep 17 00:00:00 2001 From: fkobi Date: Sun, 23 Nov 2025 22:16:41 +0100 Subject: [PATCH] Migrate /var/run/ to /run/ Thus update to FHS 3.0: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s13.html Signed-off-by: fkobi --- contrib/openrc/i2pd.openrc | 2 +- debian/i2pd.init | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/openrc/i2pd.openrc b/contrib/openrc/i2pd.openrc index fe6fc285..c0d5701e 100644 --- a/contrib/openrc/i2pd.openrc +++ b/contrib/openrc/i2pd.openrc @@ -1,6 +1,6 @@ #!/sbin/openrc-run -pidfile="/var/run/i2pd/i2pd.pid" +pidfile="/run/i2pd/i2pd.pid" logfile="/var/log/i2pd/i2pd.log" mainconf="/etc/i2pd/i2pd.conf" tunconf="/etc/i2pd/tunnels.conf" diff --git a/debian/i2pd.init b/debian/i2pd.init index 9bd3edb9..d78f6573 100644 --- a/debian/i2pd.init +++ b/debian/i2pd.init @@ -15,7 +15,7 @@ DESC=i2pd # Introduce a short description here NAME=i2pd # Introduce the short server's name here DAEMON=/usr/bin/$NAME # Introduce the server's location here DAEMON_OPTS="" # Arguments to run the daemon with -PIDFILE=/var/run/$NAME/$NAME.pid +PIDFILE=/run/$NAME/$NAME.pid I2PCONF=/etc/$NAME/i2pd.conf TUNCONF=/etc/$NAME/tunnels.conf TUNDIR=/etc/$NAME/tunnels.conf.d @@ -42,7 +42,7 @@ do_start() return 2 fi - test -e /var/run/i2pd || install -m 755 -o i2pd -g i2pd -d /var/run/i2pd + test -e /run/i2pd || install -m 755 -o i2pd -g i2pd -d /run/i2pd touch "$PIDFILE" chown -f $USER:adm "$PIDFILE"