feat!: implement own pid file + signal handling
This commit is contained in:
parent
67b3be4c4a
commit
8bbb6c9113
5 changed files with 58 additions and 27 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue