File: Change-default-runtime-directory-var-run-run.patch

package info (click to toggle)
inetsim 1.3.2%2Bdfsg.1-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,768 kB
  • sloc: perl: 13,024; sh: 262; makefile: 26; ansic: 13
file content (105 lines) | stat: -rw-r--r-- 3,627 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
From: Arnaud Rebillout <arnaudr@debian.org>
Date: Mon, 1 Dec 2025 23:21:51 +0700
Subject: Change default runtime directory /var/run -> /run

---
 contrib/init.d.inetsim     | 2 +-
 doc/inetsim.de.pod         | 2 +-
 doc/inetsim.en.pod         | 2 +-
 lib/INetSim.pm             | 2 +-
 lib/INetSim/CommandLine.pm | 2 +-
 man/de/man1/inetsim.1      | 2 +-
 man/man1/inetsim.1         | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/contrib/init.d.inetsim b/contrib/init.d.inetsim
index b4d2bd1..f70b018 100644
--- a/contrib/init.d.inetsim
+++ b/contrib/init.d.inetsim
@@ -15,7 +15,7 @@ DESC="Internet Service Simulation Suite"
 NAME=inetsim
 DAEMON=/usr/bin/inetsim
 DAEMON_ARGS=""
-PIDFILE=/var/run/$NAME.pid
+PIDFILE=/run/$NAME.pid
 SCRIPTNAME=/etc/init.d/$NAME
 
 # Exit if the binary is not installed
diff --git a/doc/inetsim.de.pod b/doc/inetsim.de.pod
index cdd1e89..d410437 100644
--- a/doc/inetsim.de.pod
+++ b/doc/inetsim.de.pod
@@ -105,7 +105,7 @@ Standard ist die Prozess-ID des Hauptprogramms.
 =item B<--pidfile> <I<PID-Datei>>
 
 Angabe einer alternativen PID-Datei.
-Standard ist /var/run/inetsim.pid.
+Standard ist /run/inetsim.pid.
 
 =back
 
diff --git a/doc/inetsim.en.pod b/doc/inetsim.en.pod
index b86c78d..b92c377 100644
--- a/doc/inetsim.en.pod
+++ b/doc/inetsim.en.pod
@@ -96,7 +96,7 @@ Session name to use, default is the PID of the parent process.
 
 =item B<--pidfile> <I<pid file>>
 
-The pid file to use, default is /var/run/inetsim.pid.
+The pid file to use, default is /run/inetsim.pid.
 
 =back
 
diff --git a/lib/INetSim.pm b/lib/INetSim.pm
index 6afd2c1..ebbcbba 100644
--- a/lib/INetSim.pm
+++ b/lib/INetSim.pm
@@ -337,7 +337,7 @@ Available options:
   --faketime-auto-incr=<secs>    Delta for auto incrementing faketime (seconds).
                                  Overrides configuration option 'faketime_auto_increment'.
   --session=<id>                 Session id to use. Defaults to main process id.
-  --pidfile=<filename>           Pid file to use. Defaults to '/var/run/inetsim.pid'.
+  --pidfile=<filename>           Pid file to use. Defaults to '/run/inetsim.pid'.
 
 EOF
 ;
diff --git a/lib/INetSim/CommandLine.pm b/lib/INetSim/CommandLine.pm
index d8f27bd..8efd68e 100644
--- a/lib/INetSim/CommandLine.pm
+++ b/lib/INetSim/CommandLine.pm
@@ -170,7 +170,7 @@ sub parse_options {
     }
     # set default pid file if unset
     if ((! defined $CommandLineOptions{'pidfile'}) || (! $CommandLineOptions{'pidfile'})) {
-        $CommandLineOptions{'pidfile'} = "/var/run/inetsim.pid";
+        $CommandLineOptions{'pidfile'} = "/run/inetsim.pid";
     }
 }
 
diff --git a/man/de/man1/inetsim.1 b/man/de/man1/inetsim.1
index df4bd75..875cb33 100644
--- a/man/de/man1/inetsim.1
+++ b/man/de/man1/inetsim.1
@@ -221,7 +221,7 @@ Standard ist die Prozess-ID des Hauptprogramms.
 .IP "\fB\-\-pidfile\fR <\fIPID-Datei\fR>" 4
 .IX Item "--pidfile <PID-Datei>"
 Angabe einer alternativen PID-Datei.
-Standard ist /var/run/inetsim.pid.
+Standard ist /run/inetsim.pid.
 .SH "BEISPIELE"
 .IX Header "BEISPIELE"
 Simulation mit Sitzungsnamen 'simtest5' starten
diff --git a/man/man1/inetsim.1 b/man/man1/inetsim.1
index e891982..c89b0fb 100644
--- a/man/man1/inetsim.1
+++ b/man/man1/inetsim.1
@@ -212,7 +212,7 @@ Default is 3600.
 Session name to use, default is the \s-1PID\s0 of the parent process.
 .IP "\fB\-\-pidfile\fR <\fIpid file\fR>" 4
 .IX Item "--pidfile <pid file>"
-The pid file to use, default is /var/run/inetsim.pid.
+The pid file to use, default is /run/inetsim.pid.
 .SH "EXAMPLES"
 .IX Header "EXAMPLES"
 Start the simulation with session name 'simtest5'