mirror of
https://github.com/nadoo/glider.git
synced 2025-02-24 01:45:39 +08:00
.. | ||
glider@.service | ||
README.md |
Service
Install
1. copy binary file
cp glider /usr/bin/
2. add service file
# copy service file to systemd
cp systemd/glider@.service /etc/systemd/system/
3. add config file: server.conf
# 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
# enable and start service
systemctl enable glider@server
systemctl start glider@server
See glider@.service
Open file limit
1. setup system limit
vim /etc/security/limits.d/unlimited.conf
* soft nofile unlimited
* hard nofile unlimited
* soft nproc unlimited
* hard nproc unlimited
2. change systemd limit
echo DefaultLimitNOFILE=102400 >> /etc/systemd/system.conf
echo DefaultLimitNOFILE=102400 >> /etc/systemd/user.conf
3. reexec systemd
systemctl daemon-reexec
4. restart glider service
systemctl restart glider@server
5. check the limits of PID
cat /proc/PID/limits