I have an OpenSUSE environment where InfluxDB is installed. In order to access Influx CLI, i need to run “Influxd” seperately everytime. How do I make Influxd run as a service in the background?
It looks like the latest version of OpenSUSE, Leap 15, uses systemd:
The documentation gives a good overview of systemd and how it’s used on OpenSUSE.
In order to add a service, you will need to create a “unit file” for InfluxDB, and permanently enable it.
We provide a unit file for InfluxDB as part of the code repository:
[Unit] Description=InfluxDB is an open-source, distributed, time series database Documentation=https://docs.influxdata.com/influxdb/ After=network-online.target [Service] User=influxdb Group=influxdb LimitNOFILE=65536 EnvironmentFile=-/etc/default/influxdb ExecStart=/usr/bin/influxd -config /etc/influxdb/influxdb.conf $INFLUXD_OPTS KillMode=control-group Restart=on-failure [Install] WantedBy=multi-user.target Alias=influxd.service
This blog post provides a good overview of creating a systemd service:
Thanks, Got it working