Browse Source

Disable daemon warning in atop module

Change-Id: I348e5970e512660eca7f8a140c3b185c01ebd1c3
Ilya Shakhat 3 years ago
parent
commit
83aeb55e60
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      performa/modules/atop.py

+ 2
- 2
performa/modules/atop.py View File

@@ -206,7 +206,7 @@ def start(module):
206 206
     module.run_command(cmd)
207 207
 
208 208
     # start atop as daemon
209
-    cmd = ('daemon -n %(name)s -- atop -w %(file)s %(interval)s' %
209
+    cmd = ('daemon -n %(name)s -U -- atop -w %(file)s %(interval)s' %
210 210
            dict(name=UNIQUE_NAME, file=ATOP_FILE_NAME,
211 211
                 interval=module.params['interval']))
212 212
 
@@ -228,7 +228,7 @@ def start(module):
228 228
 
229 229
 def stop(module):
230 230
     # stop atop
231
-    cmd = 'daemon -n %(name)s --stop' % dict(name=UNIQUE_NAME)
231
+    cmd = 'daemon -n %(name)s -U --stop' % dict(name=UNIQUE_NAME)
232 232
 
233 233
     rc, stdout, stderr = module.run_command(cmd)
234 234
 

Loading…
Cancel
Save