diff options
author | Coleman McFarland <coleman@de.limited> | 2024-04-19 20:22:14 -0400 |
---|---|---|
committer | Coleman McFarland <coleman@de.limited> | 2024-04-19 20:22:14 -0400 |
commit | a66b6298963d18b8d1d851d20df6bb8a29fd8e6f (patch) | |
tree | cd842d8acbe7fc650b70c81060de4bf69e510c80 | |
parent | 78084ee76d6e6ac4b5e94e015b354bd3cfa8e934 (diff) |
Chatops daemon must set rc_bg
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | pkg/openbsd/chatops-wrapper | 7 | ||||
-rw-r--r-- | pkg/openbsd/rc.d/chatops | 3 |
3 files changed, 4 insertions, 8 deletions
diff --git a/meson.build b/meson.build index 38f1de3..58044bd 100644 --- a/meson.build +++ b/meson.build @@ -16,4 +16,4 @@ if host_machine.system() == 'openbsd' install_data(chatops_script, install_dir : '/etc/rc.d', install_mode : 'rwxr-xr-x') -endif
\ No newline at end of file +endif diff --git a/pkg/openbsd/chatops-wrapper b/pkg/openbsd/chatops-wrapper deleted file mode 100644 index 7bab300..0000000 --- a/pkg/openbsd/chatops-wrapper +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/ksh - -. /etc/chatops/env - -export CHATOPS_PASSWORD - -/usr/local/bin/chatops diff --git a/pkg/openbsd/rc.d/chatops b/pkg/openbsd/rc.d/chatops index 11ef847..20b962f 100644 --- a/pkg/openbsd/rc.d/chatops +++ b/pkg/openbsd/rc.d/chatops @@ -4,6 +4,9 @@ daemon="/usr/local/bin/chatops" . /etc/rc.d/rc.subr +rc_bg=YES + # /etc/chatops/env must exist and set CHATOPS_PASSWORD rc_cmd $1 + |