diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 8877422..bf42706 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,7 +100,7 @@ fn main() { // daemonize if !foreground { let daemonize = Daemonize::new() - .pid_file(format!("/tmp/wgrs-{}.pid", name)) + .pid_file(format!("/tmp/wireguard-rs-{}.pid", name)) .chown_pid_file(true) .working_directory("/tmp") .user("nobody") @@ -170,7 +170,7 @@ fn main() { Err(err) => { log::info!("UAPI connection error: {}", err); profiler_stop(); - exit(0); + exit(-1); } } }); |