Skip to content

Commit

Permalink
Fix: Use correct PID path in service file
Browse files Browse the repository at this point in the history
Merge pull request #50 from doracpphp/fix-gsad_pid_dir
  • Loading branch information
bjoernricks authored Mar 3, 2022
2 parents 39ee4a6 + 3ad0bd4 commit fbaa816
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ if (NOT GVMD_RUN_DIR)
set (GVMD_RUN_DIR "/run/gvmd")
endif (NOT GVMD_RUN_DIR)

if (NOT GSAD_PID_DIR)
set (GSAD_PID_DIR "${GVM_RUN_DIR}")
endif (NOT GSAD_PID_DIR)


if (NOT GVM_STATE_DIR)
Expand Down
2 changes: 1 addition & 1 deletion config/gsad.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Wants=gvmd.service
Type=forking
User=gvm
Group=gvm
PIDFile=${GSAD_PID_DIR}/gsad.pid
PIDFile=${GSAD_PID_PATH}
ExecStart=${SBINDIR}/gsad --listen 127.0.0.1 --port 9392 --http-only
Restart=always
TimeoutStopSec=10
Expand Down
3 changes: 0 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ if (GSAD_DATA_DIR)
add_definitions (-DGSAD_DATA_DIR="${GSAD_DATA_DIR}")
endif (GSAD_DATA_DIR)

if (GSAD_PID_DIR)
add_definitions (-DGSAD_PID_DIR="${GSAD_PID_DIR}")
endif (GSAD_PID_DIR)

if (GSAD_CONFIG_DIR)
add_definitions (-DGSAD_CONFIG_DIR="${GSAD_CONFIG_DIR}")
Expand Down

0 comments on commit fbaa816

Please sign in to comment.