mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +08:00
35 lines
566 B
Markdown
35 lines
566 B
Markdown
## Service
|
|
|
|
### Install
|
|
|
|
#### 1. copy binary file
|
|
|
|
```bash
|
|
cp glider /usr/bin/
|
|
```
|
|
|
|
#### 2. add service file
|
|
|
|
```bash
|
|
# copy service file to systemd
|
|
cp systemd/glider@.service /etc/systemd/system/
|
|
```
|
|
|
|
#### 3. add config file: ***server***.conf
|
|
|
|
```bash
|
|
# copy config file to /etc/glider/
|
|
mkdir /etc/glider/
|
|
cp ./config/glider.conf.example /etc/glider/server.conf
|
|
```
|
|
|
|
#### 4. enable and start service: glider@***server***
|
|
|
|
```bash
|
|
# enable and start service
|
|
systemctl enable glider@server
|
|
systemctl start glider@server
|
|
```
|
|
|
|
See [glider@.service](glider%40.service)
|