Skip to content

Commit

Permalink
优化目录检测
Browse files Browse the repository at this point in the history
  • Loading branch information
fifilyu committed Jun 18, 2022
1 parent 25f8a16 commit 24d5454
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions sppm_cli.py
Expand Up @@ -75,9 +75,11 @@ def cli_build_help():
def build_sppm_cli_cfg(cfg_name):
from pathlib import Path

run_dir = '/run' if os.path.exists('/run') else '/var/run'

config = {
'pid': ('/var/run/%s.pid' % cfg_name),
'child_pid': ('/var/run/child_%s.pid' % cfg_name),
'pid': ('%s/%s.pid' % (run_dir, cfg_name)),
'child_pid': ('%s/child_%s.pid' % (run_dir, cfg_name)),
'lock': ('/var/lock/subsys/%s' % cfg_name),
'log': ('/var/log/sppm_cli/%s.log' % cfg_name),
'timeout': 0
Expand Down
2 changes: 1 addition & 1 deletion sppm_help/version.txt
@@ -1 +1 @@
2.1.2
2.1.3

0 comments on commit 24d5454

Please sign in to comment.