test 1: installed version 19.12-0ubuntu13, registered, service is running, upgraded to version 23
result: version 23 is now the running service
test 2: installed version 19.12-0ubuntu13, registered, systemctl stop landscape-client, upgraded to version 23
result: version 23 is now the running service
test 3: installed version 19.12-0ubuntu13, registered, systemctl stop landscape-client, systemctl disable landscape-client, upgraded to version 23
result: service is not running
test 4: installed version 19.23-0ubuntu13, did not register, service is not running, upgraded to version 23
result: service is not running
Repeated tests on focal with same results (expect upgrading from version 19.12-0ubuntu4.3).
Testing summary, tests run on jammy:
test 1: installed version 19.12-0ubuntu13, registered, service is running, upgraded to version 23
result: version 23 is now the running service
test 2: installed version 19.12-0ubuntu13, registered, systemctl stop landscape-client, upgraded to version 23
result: version 23 is now the running service
test 3: installed version 19.12-0ubuntu13, registered, systemctl stop landscape-client, systemctl disable landscape-client, upgraded to version 23
result: service is not running
test 4: installed version 19.23-0ubuntu13, did not register, service is not running, upgraded to version 23
result: service is not running
Repeated tests on focal with same results (expect upgrading from version 19.12-0ubuntu4.3).
The version I used for these tests can be found in this PPA: https:/ /launchpad. net/~mitchburto n/+archive/ ubuntu/ landscape- client- sru-tests
I think this is almost an adequate solution, but it's still concerning that a manually stopped (but not disabled) service is restarted on upgrade.