Settings can be overwritten on command line

make pidfile and persistant data dir confgurable
This commit is contained in:
badaix 2020-02-25 23:40:23 +01:00
parent 0c25a7a42d
commit 7376c7709c
8 changed files with 45 additions and 21 deletions

View file

@ -148,7 +148,7 @@ void Daemon::daemonize()
/// Try to lock file
if (lockf(pidFilehandle_, F_TLOCK, 0) == -1)
throw SnapException("Could not lock PID lock file \"" + pidfile_ + "\"");
throw SnapException("Could not lock PID lock file \"" + pidfile_ + "\". Is the daemon already running?");
char str[10];
/// Get and format PID