Autostart server after upgrade from Influxdb 1.8 to 2.4 with specific paths

I’ve been using Influx 1.8 for quite a while and now upgraded to 2.4.

I did so based on an upgrade command trying to control the paths for the database, specifically I used:

sudo influxd upgrade
–username=“dba” \

Everything works fine so far, at least when I start the server with

sudo nohup influxd --engine-path=/db/influxdb_v2/Logging/engine --bolt-path=/db/influxdb_v2/logging.bolt run

I’m now trying to move that over to a process starting automatically at boot-time.
I’m feeling bad, but I was not yet able to do so, some paths of standard installation interfere and the server is starting with a fresh database.

Would be grateful for a hint on how to start the server or where to place the config file exactly.