mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update telegram-notifier.sh
This commit is contained in:
parent
40033a8975
commit
f03230b87d
@ -638,9 +638,21 @@ remove_systemd_service() {
|
|||||||
# Funciones requeridas por systemd
|
# Funciones requeridas por systemd
|
||||||
start_silent() {
|
start_silent() {
|
||||||
mkdir -p "$PID_DIR"
|
mkdir -p "$PID_DIR"
|
||||||
capture_journal_events > /dev/null 2>&1 & echo $! > "$PID_DIR/journal.pid"
|
|
||||||
capture_direct_events > /dev/null 2>&1 & echo $! > "$PID_DIR/direct.pid"
|
capture_journal_events > /dev/null 2>&1 &
|
||||||
|
echo $! > "$PID_DIR/journal.pid"
|
||||||
|
journal_pid=$!
|
||||||
|
|
||||||
|
capture_direct_events > /dev/null 2>&1 &
|
||||||
|
echo $! > "$PID_DIR/direct.pid"
|
||||||
|
direct_pid=$!
|
||||||
|
|
||||||
echo $$ > "$PID_DIR/service.pid"
|
echo $$ > "$PID_DIR/service.pid"
|
||||||
|
|
||||||
|
# Esperar que ambos procesos finalicen (mantiene vivo el servicio systemd)
|
||||||
|
wait $journal_pid
|
||||||
|
wait $direct_pid
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_silent() {
|
stop_silent() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user