feat!: implement own pid file + signal handling

This commit is contained in:
Moritz Böhme 2023-07-30 17:53:28 +02:00
parent 67b3be4c4a
commit 8bbb6c9113
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
5 changed files with 58 additions and 27 deletions

View file

@ -25,6 +25,9 @@ pub enum Command {
/// do not send notifications
#[arg(short, long)]
no_notify: bool,
#[arg(short, long)]
#[clap(default_value_t = format!("{}/timers.pid", run_path()))]
pid_file: String,
},
/// Add a timer
#[clap(visible_alias = "a")]