diff --git a/sppm_cli.py b/sppm_cli.py index f25595f..be14d90 100755 --- a/sppm_cli.py +++ b/sppm_cli.py @@ -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 diff --git a/sppm_help/version.txt b/sppm_help/version.txt index 8f9174b..abae0d9 100644 --- a/sppm_help/version.txt +++ b/sppm_help/version.txt @@ -1 +1 @@ -2.1.2 \ No newline at end of file +2.1.3 \ No newline at end of file