Closed ghen2 closed 4 years ago
ssdb does not write a pid file when not running as daemon (eg. under systemd). Although it logs the pidfile creation: 2020-09-01 16:01:00.091 [INFO ] ssdb-server.cpp(85): pidfile: /data/ssdb/ssdb.pid, pid: 29369
2020-09-01 16:01:00.091 [INFO ] ssdb-server.cpp(85): pidfile: /data/ssdb/ssdb.pid, pid: 29369
See src/util/app.cpp line 150:
void Application::write_pid(){ if(!app_args.is_daemon){ return; } ... }
Why is this is_daemon check there? Can't it create a pidfile unconditionally, when configured to do so?
ssdb does not write a pid file when not running as daemon (eg. under systemd). Although it logs the pidfile creation:
2020-09-01 16:01:00.091 [INFO ] ssdb-server.cpp(85): pidfile: /data/ssdb/ssdb.pid, pid: 29369
See src/util/app.cpp line 150:
Why is this is_daemon check there? Can't it create a pidfile unconditionally, when configured to do so?