View | Details | Raw Unified | Return to bug 35885
Collapse All | Expand All

(-)a/.gear/rules (-1 / +1 lines)
Lines 1-3 Link Here
1
tar: v@version@:.
1
tar: v@version@:.
2
diff: v@version@:. . name=@name@-@version@.patch
2
diff: v@version@:. . name=@name@-@version@.patch
3
3
copy?: *.patch
(-)a/replaced-rundir-8.39.0.patch (+69 lines)
Line 0 Link Here
1
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c
2
index 1618fde94..a236dab69 100644
3
--- a/plugins/imuxsock/imuxsock.c
4
+++ b/plugins/imuxsock/imuxsock.c
5
@@ -75,7 +75,7 @@ MODULE_CNFNAME("imuxsock")
6
 /* defines */
7
 #ifndef _PATH_LOG
8
 #ifdef BSD
9
-#define _PATH_LOG	"/var/run/log"
10
+#define _PATH_LOG	"/run/log"
11
 #else
12
 #define _PATH_LOG	"/dev/log"
13
 #endif
14
diff --git a/tools/omfwd.c b/tools/omfwd.c
15
index e063f2e6b..62027efa3 100644
16
--- a/tools/omfwd.c
17
+++ b/tools/omfwd.c
18
@@ -798,7 +798,7 @@ static rsRetVal changeToNs(instanceData *const pData __attribute__((unused)))
19
 		}
20
 
21
 		/* build network namespace path */
22
-		if (asprintf(&nsPath, "/var/run/netns/%s", pData->networkNamespace) == -1) {
23
+		if (asprintf(&nsPath, "/run/netns/%s", pData->networkNamespace) == -1) {
24
 			LogError(0, RS_RET_OUT_OF_MEMORY, "omfwd: asprintf failed");
25
 			ABORT_FINALIZE(RS_RET_OUT_OF_MEMORY);
26
 		}
27
diff --git a/tools/rsyslogd.8 b/tools/rsyslogd.8
28
index 2b320f859..788564d71 100644
29
--- a/tools/rsyslogd.8
30
+++ b/tools/rsyslogd.8
31
@@ -128,14 +128,14 @@ reacts to a set of signals.  You may easily send a signal to
32
 using the following:
33
 .IP
34
 .nf
35
-kill -SIGNAL $(cat /var/run/rsyslogd.pid)
36
+kill -SIGNAL $(cat /run/rsyslogd.pid)
37
 .fi
38
 .PP
39
 Note that -SIGNAL must be replaced with the actual signal
40
 you are trying to send, e.g. with HUP. So it then becomes:
41
 .IP
42
 .nf
43
-kill -HUP $(cat /var/run/rsyslogd.pid)
44
+kill -HUP $(cat /run/rsyslogd.pid)
45
 .fi
46
 .PP
47
 .TP
48
@@ -216,7 +216,7 @@ for exact information.
49
 .I /dev/log
50
 The Unix domain socket to from where local syslog messages are read.
51
 .TP
52
-.I /var/run/rsyslogd.pid
53
+.I /run/rsyslogd.pid
54
 The file containing the process id of 
55
 .BR rsyslogd .
56
 .TP
57
diff --git a/tools/rsyslogd.c b/tools/rsyslogd.c
58
index fe5dff890..788fa1839 100644
59
--- a/tools/rsyslogd.c
60
+++ b/tools/rsyslogd.c
61
@@ -155,7 +155,7 @@ void rsyslogdDoDie(int sig);
62
 #if defined(_AIX)  /* AIXPORT : Add _AIX */
63
 #	define PATH_PIDFILE "/etc/rsyslogd.pid"
64
 #else
65
-#	define PATH_PIDFILE "/var/run/rsyslogd.pid"
66
+#	define PATH_PIDFILE "/run/rsyslogd.pid"
67
 #endif /*_AIX*/
68
 #endif
69
 
(-)a/rsyslog.classic.conf.d (-2 / +2 lines)
Lines 3-10 After=syslog.socket Link Here
3
3
4
[Service]
4
[Service]
5
ExecStartPre=/lib/systemd/altlinux-rsyslog-extrasockets
5
ExecStartPre=/lib/systemd/altlinux-rsyslog-extrasockets
6
ExecStartPost=/bin/touch /var/lock/subsys/rsyslogd
6
ExecStartPost=/bin/touch /run/lock/subsys/rsyslogd
7
ExecStopPost=/bin/rm -f /var/lock/subsys/rsyslogd
7
ExecStopPost=/bin/rm -f /run/lock/subsys/rsyslogd
8
8
9
[Install]
9
[Install]
10
Alias=syslog.service
10
Alias=syslog.service
(-)a/rsyslog.spec (-1 / +3 lines)
Lines 16-22 Link Here
16
16
17
Name: rsyslog
17
Name: rsyslog
18
Version: 8.39.0
18
Version: 8.39.0
19
Release: alt1
19
Release: alt2
20
20
21
Summary: Enhanced system logging and kernel message trapping daemon
21
Summary: Enhanced system logging and kernel message trapping daemon
22
License: GPLv3+ ASL2.0
22
License: GPLv3+ ASL2.0
Lines 25-30 Url: http://www.rsyslog.com Link Here
25
# https://github.com/rsyslog/rsyslog.git
25
# https://github.com/rsyslog/rsyslog.git
26
Source: %name-%version.tar
26
Source: %name-%version.tar
27
Patch: %name-%version.patch
27
Patch: %name-%version.patch
28
Patch1: replaced-rundir-8.39.0.patch
28
29
29
BuildRequires: flex
30
BuildRequires: flex
30
BuildRequires: zlib-devel
31
BuildRequires: zlib-devel
Lines 356-361 all other functions: Link Here
356
%prep
357
%prep
357
%setup -q
358
%setup -q
358
%patch -p1
359
%patch -p1
360
%patch1 -p1
359
361
360
%build
362
%build
361
%autoreconf
363
%autoreconf
(-)a/rsyslogd.init (-2 / +2 lines)
Lines 30-37 SourceIfNotEmpty /etc/sysconfig/rsyslogd Link Here
30
RSYSLOGD=/sbin/rsyslogd
30
RSYSLOGD=/sbin/rsyslogd
31
[ -x "$RSYSLOGD" ] || exit
31
[ -x "$RSYSLOGD" ] || exit
32
32
33
PIDFILE=/var/run/rsyslogd.pid
33
PIDFILE=/run/rsyslogd.pid
34
LOCKFILE=/var/lock/subsys/rsyslogd
34
LOCKFILE=/run/lock/subsys/rsyslogd
35
RETVAL=0
35
RETVAL=0
36
36
37
extrasockets()
37
extrasockets()

Return to bug 35885