logging: initialization fix, module inclusion into result rpm package
This commit is contained in:
parent
98063947dd
commit
7dbf7151f3
2 changed files with 6 additions and 5 deletions
1
Makefile
1
Makefile
|
|
@ -72,6 +72,7 @@ install:
|
|||
install -m 0644 tuned.py $(DESTDIR)/usr/share/$(NAME)/
|
||||
install -m 0644 tuned_adm.py $(DESTDIR)/usr/share/$(NAME)/
|
||||
install -m 0644 tuned_nettool.py $(DESTDIR)/usr/share/$(NAME)/
|
||||
install -m 0644 tuned_logging.py $(DESTDIR)/usr/share/$(NAME)/
|
||||
for file in $(FILES_tuningplugins); do \
|
||||
install -m 0644 $$file $(DESTDIR)/usr/share/$(NAME)/tuningplugins; \
|
||||
done
|
||||
|
|
|
|||
10
tuned
10
tuned
|
|
@ -22,8 +22,12 @@
|
|||
#
|
||||
|
||||
import sys, os.path, getopt, atexit, signal
|
||||
import logging, tuned_logging
|
||||
|
||||
TUNEDDIR = "/usr/share/tuned"
|
||||
if not TUNEDDIR in sys.path:
|
||||
sys.path.append(TUNEDDIR)
|
||||
|
||||
import logging, tuned_logging
|
||||
log = logging.getLogger("tuned")
|
||||
|
||||
def usage():
|
||||
|
|
@ -83,10 +87,6 @@ if __name__ == "__main__":
|
|||
elif opt in ['-D', "--debug"]:
|
||||
debug = True
|
||||
|
||||
TUNEDDIR = "/usr/share/tuned"
|
||||
if not TUNEDDIR in sys.path:
|
||||
sys.path.append(TUNEDDIR)
|
||||
|
||||
from tuned import tuned
|
||||
|
||||
tuned.init(TUNEDDIR, cfgfile, debug = debug)
|
||||
|
|
|
|||
Loading…
Reference in a new issue