mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
5 files changed
+8
-27
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user