Skip to content

Commit

Permalink
exename & GS()
Browse files Browse the repository at this point in the history
  • Loading branch information
rootTHC committed Jun 13, 2024
1 parent 34abf71 commit 8201078
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,7 @@ init_setup()
# 1. Try pkill/killall _AND_ daemon is running then do nothing.
# 2. Otherwise start gs-dbus as DAEMON. The daemon will exit (fully) if GS-Address is already in use.
PROFILE_LINE="${KL_CMD_BIN} ${KL_CMD_RUNCHK_UARG[*]} '${KL_NAME}' 2>/dev/null || '${DSTBIN}' 2>/dev/null"
# CRONTAB_LINE="@reboot '${DSTBIN}' 2>/dev/null"
CRONTAB_LINE="${KL_CMD_BIN} ${KL_CMD_RUNCHK_UARG[*]} '${KL_NAME}' 2>/dev/null || '${DSTBIN}' 2>/dev/null"

if [[ -n $ENCODE_STR ]]; then
Expand Down
2 changes: 1 addition & 1 deletion tools/4_gs-netcat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ GS_CONFIG_HOST=%s\n\
else
printf("GS_CONFIG_PORT=\n");
if (gopt.flags & GSC_FL_FFPID)
printf("GS_FFPID=1\n");
printf("GS_CONFIG_FFPID=1\n");

exit(0);
}
Expand Down
1 change: 1 addition & 0 deletions tools/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ try_changeargv0(char *argv[]) {

if (gopt.proc_hiddenname == NULL) {
DEBUGF("Config has no PROC_HIDDENNAME.\n");
gopt.prg_exename = exename;
return;
}

Expand Down

0 comments on commit 8201078

Please sign in to comment.