<table><tr><td style="">bruns created this revision.<br />bruns added reviewers: Baloo, ngraham, astippich, poboiko.<br />Herald added projects: Frameworks, Baloo.<br />Herald added a subscriber: kde-frameworks-devel.<br />bruns requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21674">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently, there are 7 commands which start/stop the indexer in some way:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">stop/start/restart: stops or/and starts the indexer process, effective for the current session (on next login, the indexer is started when enabled).</li>
<li class="remarkup-list-item">suspend/resume: the indexer process keeps running, but does not process any file events (files added/delete/modified ...).</li>
<li class="remarkup-list-item">disable/enable: sets the enable state in the config, stops the indexer process and deletes the database. On enable (even when already enabled) forces a full reindex via the 'firstRun' flag. The deletion of the DB file was done silently.</li>
</ul>

<p>The large number of similar commands is confusing by itself, and more<br />
so its side effects.</p>

<p>The restart command was also racy, as it tried to start baloo_file even<br />
when the old instance still held the DBus interface, then the new instance<br />
would directly exit.</p>

<p>This removes the stop/start/restart command alltogether, and removes the<br />
deletion of the DB from the disable command. Enable/disable still<br />
starts/stops the 'baloo_file' process.</p>

<p>To allow deletion of the DB via CLI, a new "purge" command is added. In<br />
case the indexer was enabled/running, it is kept enabled.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>BRANCH</strong><div><div>balooctl_start_stop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21674">https://phabricator.kde.org/D21674</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/tools/balooctl/main.cpp</div></div></div><br /><div><strong>To: </strong>bruns, Baloo, ngraham, astippich, poboiko<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams<br /></div>