private void enableService(final boolean enabled) {
        if (enabled && thread == null) {
            startService();
        } else if (!enabled && thread != null) {
            stopService();
        }
    }
Sets if the check for updates service is enabled.

@param enabled true if the check for updates service is enabled.
xmppserver/src/main/java/org/jivesoftware/openfire/update/UpdateManager.java