mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
add systemd service file.
This commit is contained in:
1 parent
f5052770c0
commit
772eef1563
4 files changed
+30
-35
No files matched your search
@@ -0,0 +1,14 @@
|
||||
## Service
|
||||
```bash
|
||||
# copy service file to systemd
|
||||
cp systemd/glider@.service /etc/systemd/system/
|
||||
|
||||
# copy config file to /etc/glider/
|
||||
mkdir /etc/glider/
|
||||
cp glider.conf.example /etc/glider/server.conf
|
||||
|
||||
# enable and start service
|
||||
systemctl enable glider@server
|
||||
systemctl start glider@server
|
||||
```
|
||||
See [glider@.service](https://github.com/nadoo/glider/blob/master/sytemd/glider@.service)
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Glider Service (%i)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=nobody
|
||||
Restart=always
|
||||
ExecStart=/usr/bin/glider -config /etc/glider/%i.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user