mirror of
https://github.com/bytedance/g3.git
synced 2026-05-02 21:50:44 +00:00
try to keep old daemon running if new start failed (#267)
This commit is contained in:
parent
5bffc814d2
commit
51ff7ec2bf
54 changed files with 1252 additions and 290 deletions
|
|
@ -8,7 +8,7 @@ Type=simple
|
|||
Environment="RUNTIME_DIRECTORY=/run/g3proxy"
|
||||
EnvironmentFile=-/etc/g3proxy/%i/env
|
||||
ExecStartPre=/bin/sh -c "[ -d $RUNTIME_DIRECTORY ] || mkdir $RUNTIME_DIRECTORY"
|
||||
ExecStartPre=/bin/sh -c "[ ! -e $RUNTIME_DIRECTORY/%i.sock ] || rm $RUNTIME_DIRECTORY/%i.sock"
|
||||
ExecStartPre=-/usr/bin/g3proxy-ctl --control-dir $RUNTIME_DIRECTORY -G %i offline
|
||||
ExecStart=/usr/bin/g3proxy -c /etc/g3proxy/%i/ --control-dir $RUNTIME_DIRECTORY -s -G %i
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
ExecStop=/usr/bin/g3proxy-ctl --control-dir $RUNTIME_DIRECTORY -G %i -p $MAINPID offline
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue