mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 09:25:41 +08:00
update README: add "PermissionsStartOnly=true" in service file.
This commit is contained in:
parent
97944e44e6
commit
cc6f121764
@ -82,7 +82,6 @@ glider -config glider.conf
|
|||||||
```
|
```
|
||||||
Config file, **just use the command line flag name as the key name**:
|
Config file, **just use the command line flag name as the key name**:
|
||||||
```bash
|
```bash
|
||||||
cat < glider.conf.sample
|
|
||||||
### glider config file
|
### glider config file
|
||||||
|
|
||||||
# verbose mode, print logs
|
# verbose mode, print logs
|
||||||
@ -134,9 +133,11 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
PermissionsStartOnly=true
|
||||||
ExecStartPre=/bin/mkdir -p /run/glider
|
ExecStartPre=/bin/mkdir -p /run/glider
|
||||||
ExecStartPre=/bin/chown nobody:nobody /run/glider
|
ExecStartPre=/bin/chown nobody:nobody /run/glider
|
||||||
ExecStart=/opt/glider/glider -l redir://:7070 -l dnstun://:5353=8.8.8.8:53 -f ss://method:pass@yourhost:8443
|
# NOTE: change to your glider path
|
||||||
|
ExecStart=/opt/glider/glider -config /opt/glider/glider.conf
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
ExecStop=/bin/kill -INT $MAINPID
|
ExecStop=/bin/kill -INT $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
|
Loading…
Reference in New Issue
Block a user