Skip to content
Snippets Groups Projects
Commit 302067b1 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 9af3ee95
Branches
Tags
No related merge requests found
......@@ -314,7 +314,7 @@ Options = NO_HOST_LOOKUP
; Run in background:
Daemonize = False
; 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)
; 1 = LOCAL1
; 2 = LOCAL2
......
......@@ -987,7 +987,7 @@ static void read_startup_ini(BOOL recycle
is_daemon=iniReadBool(fp,section,"Daemonize",FALSE);
SAFECOPY(log_facility,iniReadString(fp,section,"LogFacility","U",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));
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment