Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 812 Bytes

README.md

File metadata and controls

55 lines (39 loc) · 812 Bytes

Qryn-Unit-File

qryn systemd unit file

Qryn

1.Create the qryn.service in the following path.

nano /etc/systemd/system/qryn.service

2.Place its contents as follows.

[Unit]
Description=qryn service
After=network.target

[Service]
EnvironmentFile=/etc/default/qryn_env
Type=simple
User=root
ExecStart=qryn 

[Install]
WantedBy=multi-user.target

3.Create the qryn_env in the following path.

nano /etc/default/qryn_env

4.Place its contents as follows.

NODE_PORT=3100
CLICKHOUSE_SERVER="my.clickhouse.server"
CLICKHOUSE_AUTH="default:YOUR_PASSWORD"
CLICKHOUSE_DB="qryn"

5.Reload the systemd files.

systemctl daemon-reload

6.Start qryn.

systemctl start qryn