mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
15 lines
331 B
Bash
Executable File
15 lines
331 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
set -ex
|
|
set -o pipefail
|
|
|
|
journalctl --sync
|
|
TS="$(date '+%H:%M:%S')"
|
|
|
|
systemd-run -u hogehoge.service sleep infinity
|
|
systemctl daemon-reload
|
|
systemctl stop hogehoge.service
|
|
|
|
journalctl --sync
|
|
[[ -z "$(journalctl -b -q --since "$TS" -u hogehoge.service -p notice)" ]]
|