mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Expand user on PID path
This commit is contained in:
parent
fcccb3f7af
commit
6762fc1cad
1 changed files with 2 additions and 1 deletions
|
@ -120,7 +120,8 @@ def daemonize(configuration, logger):
|
||||||
# Check and create PID file in a race-free manner
|
# Check and create PID file in a race-free manner
|
||||||
if configuration.get("server", "pid"):
|
if configuration.get("server", "pid"):
|
||||||
try:
|
try:
|
||||||
pid_path = os.path.abspath(configuration.get("server", "pid"))
|
pid_path = os.path.abspath(os.path.expanduser(
|
||||||
|
configuration.get("server", "pid")))
|
||||||
pid_fd = os.open(
|
pid_fd = os.open(
|
||||||
pid_path, os.O_CREAT | os.O_EXCL | os.O_WRONLY)
|
pid_path, os.O_CREAT | os.O_EXCL | os.O_WRONLY)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue