Skip to content
Snippets Groups Projects
Commit 1e54839e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Change the default run/pid file to just 'sbbs.pid' (in the ctrl dir)

Non-root users don't have write access to /var/run by default,
so don't use that as the default location of the pid file.
parent 3814d467
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3780 passed
...@@ -314,7 +314,7 @@ Options = NO_HOST_LOOKUP ...@@ -314,7 +314,7 @@ Options = NO_HOST_LOOKUP
; Run in background: ; Run in background:
Daemonize = False Daemonize = False
; File to create/write-to with process identifier (when daemonized) ; File to create/write-to with process identifier (when daemonized)
PidFile = /var/run/sbbs.pid PidFile = sbbs.pid
; System log (syslog) facility to use (when daemonized) ; System log (syslog) facility to use (when daemonized)
; 1 = LOCAL1 ; 1 = LOCAL1
; 2 = LOCAL2 ; 2 = LOCAL2
......
...@@ -987,7 +987,7 @@ static void read_startup_ini(BOOL recycle ...@@ -987,7 +987,7 @@ static void read_startup_ini(BOOL recycle
is_daemon=iniReadBool(fp,section,"Daemonize",FALSE); is_daemon=iniReadBool(fp,section,"Daemonize",FALSE);
SAFECOPY(log_facility,iniReadString(fp,section,"LogFacility","U",value)); SAFECOPY(log_facility,iniReadString(fp,section,"LogFacility","U",value));
SAFECOPY(log_ident,iniReadString(fp,section,"LogIdent","synchronet",value)); SAFECOPY(log_ident,iniReadString(fp,section,"LogIdent","synchronet",value));
SAFECOPY(pid_fname,iniReadString(fp,section,"PidFile","/var/run/sbbs.pid",value)); SAFECOPY(pid_fname,iniReadString(fp,section,"PidFile","sbbs.pid",value));
umask(iniReadInteger(fp,section,"umask",077)); umask(iniReadInteger(fp,section,"umask",077));
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment