**Use case**

It prints:
```
ClickHouse has been successfully installed.

Start clickhouse-server with:
 sudo clickhouse start
```

But if clickhouse-server is already running, let's print:
```
ClickHouse has been successfully installed.

Restart clickhouse-server with:
 sudo clickhouse restart
```
{
        UInt64 pid = isRunning(pid_file);
        if (!pid)
            return 0;
        int signal = force ? SIGKILL : SIGTERM;
        const char * signal_name = force ? "kill" : "terminate";
        if (0 == kill(pid, signal))
            fmt::print("Sent {} signal to process with pid {}.\n", signal_name, pid);
        else
            throwFromErrno(fmt::format("Cannot send {} signal", signal_name), ErrorCodes::SYSTEM_ERROR);
        size_t try_num = 0;
        constexpr size_t num_tries = 60;
        for (; try_num < num_tries; ++try_num)
        {
            fmt::print("Waiting for server to stop\n");
            if (!isRunning(pid_file))
            {
                fmt::print("Server stopped\n");
                break;
            }
            sleepForSeconds(1);
        }
        if (try_num == num_tries)