Don't write to PID file

When running under systemd, PID is known and maintained by systemd.
Process don't have write PIDs to a PID file.
This commit is contained in:
Sunil Mohan Adapa committed 2016-05-29 21:07:07 +05:30
1 parent 1f53321b51
commit 9078ec5a2b
5 files changed
+8 -27

No files matched your search

+1 -2
View File
@@ -126,7 +126,7 @@ class TestCfg(unittest.TestCase):
"""Compare two sets of configuration values."""
# Note that the count of items within each section includes the number
# of default items (1, for 'root').
self.assertEqual(13, len(parser.items('Path')))
self.assertEqual(11, len(parser.items('Path')))
self.assertEqual(parser.get('Path', 'root'), cfg.root)
self.assertEqual(parser.get('Path', 'file_root'), cfg.file_root)
self.assertEqual(parser.get('Path', 'config_dir'), cfg.config_dir)
@@ -139,7 +139,6 @@ class TestCfg(unittest.TestCase):
cfg.status_log_file)
self.assertEqual(parser.get('Path', 'access_log_file'),
cfg.access_log_file)
self.assertEqual(parser.get('Path', 'pidfile'), cfg.pidfile)
self.assertEqual(5, len(parser.items('Network')))
self.assertEqual(parser.get('Network', 'host'), cfg.host)