-
Notifications
You must be signed in to change notification settings - Fork 6
Run as a systemd service
Ozan Tezcan edited this page May 17, 2021
·
1 revision
-
Build from source
Requirements : CMake, GCC or clang
git clone https://github.com/tezc/resql.git cd resql ./build.sh
-
Copy required files :
sudo cp bin/resql /usr/local/bin/resql sudo cp bin/resql.ini /etc/resql.ini sudo cp util/daemon/resql.service /etc/systemd/system/resql.service
-
Please take a look at
/etc/systemd/system/resql.service
file. It just provides an example configuration. WorkingDirectory points to /tmp, you may want to change that. Also, you should configure the server via /etc/resql.ini configuration file. -
After you configure systemd and Resql, to reload systemd with this new service unit file, run:
systemctl daemon-reload
-
To start resql :
systemctl start resql
-
If you want to start resql on boot:
systemctl enable resql.service
-
If you want to uninstall Resql from your system and systemd configuration :
systemctl stop resql systemctl disable resql rm -rf /usr/local/bin/resql rm -rf /etc/resql.ini rm -rf /etc/systemd/system/resql.service systemctl daemon-reload systemctl reset-failed
- Get Started
- Administration
- Clients