Skip to content

Commit

Permalink
socket_systemd-journal-remote_disabled: Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dodys committed Feb 23, 2023
1 parent 62e637f commit ba31a9e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# packages = systemd-journal-remote

SOCKET_NAME="systemd-journal-remote.socket"
SYSTEMCTL_EXEC='/usr/bin/systemctl'

if "$SYSTEMCTL_EXEC" -q list-unit-files "$SOCKET_NAME"; then
"$SYSTEMCTL_EXEC" stop "$SOCKET_NAME"
"$SYSTEMCTL_EXEC" mask "$SOCKET_NAME"
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# packages = systemd-journal-remote

SOCKET_NAME="systemd-journal-remote.socket"
SYSTEMCTL_EXEC='/usr/bin/systemctl'

if "$SYSTEMCTL_EXEC" -q list-unit-files "$SOCKET_NAME"; then
"$SYSTEMCTL_EXEC" unmask "$SOCKET_NAME"
"$SYSTEMCTL_EXEC" start "$SOCKET_NAME"
fi

0 comments on commit ba31a9e

Please sign in to comment.