Commit c6d4701
Chris Dent
Perform additional disable_service checks
With the advent of plugins and their settings files it has become
possible to disable_service in local.conf only to have the service
re-enabled in a plugin settings file. This happens because of
processing order.
To get around this the disable_service function now aggregates
service names into a DISABLED_SERVICES variable which is then checked
during enable_service. If something tries to enable something that
was previously disabled, a warning is produced in the log and the
service is not enabled.
Then after all configuration has been sourced a final check is to
done by verify_disabled_services to confirm that something has not
manually adjusted ENABLED_SERVICES to overcome a previously called
disable_service. If something has, the stack dies with an error.
Change-Id: I0f9403f44ed2fe693a46cd02486bd94043ce6b1a
Closes-Bug: #15043041 parent b2b82a0 commit c6d4701
2 files changed
Lines changed: 27 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1729 | 1729 | | |
1730 | 1730 | | |
1731 | 1731 | | |
| 1732 | + | |
1732 | 1733 | | |
1733 | 1734 | | |
1734 | 1735 | | |
| |||
1784 | 1785 | | |
1785 | 1786 | | |
1786 | 1787 | | |
1787 | | - | |
1788 | | - | |
| 1788 | + | |
| 1789 | + | |
1789 | 1790 | | |
1790 | 1791 | | |
1791 | 1792 | | |
1792 | 1793 | | |
1793 | | - | |
1794 | | - | |
1795 | | - | |
| 1794 | + | |
1796 | 1795 | | |
1797 | 1796 | | |
1798 | | - | |
| 1797 | + | |
| 1798 | + | |
1799 | 1799 | | |
1800 | 1800 | | |
| 1801 | + | |
1801 | 1802 | | |
1802 | | - | |
| 1803 | + | |
1803 | 1804 | | |
1804 | 1805 | | |
1805 | | - | |
| 1806 | + | |
| 1807 | + | |
1806 | 1808 | | |
1807 | 1809 | | |
1808 | 1810 | | |
| |||
1819 | 1821 | | |
1820 | 1822 | | |
1821 | 1823 | | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
1822 | 1828 | | |
1823 | 1829 | | |
1824 | 1830 | | |
| |||
1923 | 1929 | | |
1924 | 1930 | | |
1925 | 1931 | | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
1926 | 1944 | | |
1927 | 1945 | | |
1928 | 1946 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| 556 | + | |
556 | 557 | | |
557 | 558 | | |
558 | 559 | | |
| |||
0 commit comments