Use /run instead of /var/run
This commit is contained in:
parent
466dc4c767
commit
135e19f654
8 changed files with 8 additions and 8 deletions
2
Makefile
2
Makefile
|
|
@ -61,7 +61,7 @@ install:
|
||||||
mkdir -p $(DESTDIR)/var/log/tuned
|
mkdir -p $(DESTDIR)/var/log/tuned
|
||||||
|
|
||||||
# runtime directory
|
# runtime directory
|
||||||
mkdir -p $(DESTDIR)/var/run/tuned
|
mkdir -p $(DESTDIR)/run/tuned
|
||||||
mkdir -p $(DESTDIR)/etc/tmpfiles.d
|
mkdir -p $(DESTDIR)/etc/tmpfiles.d
|
||||||
install -m 0644 tuned.tmpfiles $(DESTDIR)/etc/tmpfiles.d/tuned.conf
|
install -m 0644 tuned.tmpfiles $(DESTDIR)/etc/tmpfiles.d/tuned.conf
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
#
|
#
|
||||||
# Config
|
# Config
|
||||||
#
|
#
|
||||||
STORAGE=/var/run/tuned
|
STORAGE=/run/tuned
|
||||||
STORAGE_SUFFIX=".save"
|
STORAGE_SUFFIX=".save"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ class StoragePickleProviderTestCase(unittest.TestCase):
|
||||||
self.assertEqual(self._temp_filename, provider._path)
|
self.assertEqual(self._temp_filename, provider._path)
|
||||||
|
|
||||||
provider = tuned.storage.PickleProvider()
|
provider = tuned.storage.PickleProvider()
|
||||||
self.assertEqual("/var/run/tuned/save.pickle", provider._path)
|
self.assertEqual("/run/tuned/save.pickle", provider._path)
|
||||||
|
|
||||||
def test_memory_persistence(self):
|
def test_memory_persistence(self):
|
||||||
provider = tuned.storage.PickleProvider(self._temp_filename)
|
provider = tuned.storage.PickleProvider(self._temp_filename)
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ import sys
|
||||||
import locale
|
import locale
|
||||||
import signal
|
import signal
|
||||||
|
|
||||||
PIDFILE = "/var/run/tuned/tuned.pid"
|
PIDFILE = "/run/tuned/tuned.pid"
|
||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
print """
|
print """
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ After=syslog.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/var/run/tuned/tuned.pid
|
PIDFile=/run/tuned/tuned.pid
|
||||||
BusName=com.redhat.tuned
|
BusName=com.redhat.tuned
|
||||||
ExecStart=/usr/sbin/tuned -d
|
ExecStart=/usr/sbin/tuned -d
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
# tuned runtime directory
|
# tuned runtime directory
|
||||||
d /var/run/tuned 0755 root root -
|
d /run/tuned 0755 root root -
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import os
|
||||||
|
|
||||||
log = tuned.logs.get()
|
log = tuned.logs.get()
|
||||||
|
|
||||||
DEFAULT_STORAGE_FILE = "/var/run/tuned/save.pickle"
|
DEFAULT_STORAGE_FILE = "/run/tuned/save.pickle"
|
||||||
|
|
||||||
class PickleProvider(interfaces.Provider):
|
class PickleProvider(interfaces.Provider):
|
||||||
__slots__ = ["_path", "_data"]
|
__slots__ = ["_path", "_data"]
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import os
|
||||||
import signal
|
import signal
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
PIDFILE = "/var/run/tuned/tuned.pid"
|
PIDFILE = "/run/tuned/tuned.pid"
|
||||||
|
|
||||||
log = tuned.logs.get()
|
log = tuned.logs.get()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue