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 <fkobi@pm.me>
This commit is contained in:
fkobi
2026-02-07 18:41:57 +03:00
committed by R4SAS
parent 026aad5ff7
commit 1e7ab7f5ef
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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"
+2 -2
View File
@@ -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"