#!/bin/sh

# when using systemd's LogNamespace this caused some conflicts
# with the mount namespaces set up by both systemd and snap-confine,
# causing /var/snap to disappear on Core. 
# https://bugs.launchpad.net/nuremberg/+bug/2080332
# Print the current working directory so the test can verify this is
# printed correctly
echo "Working Directory: $PWD"

# ensure syslog is working
/usr/bin/logger logger was started

# ensure systemd-cat is working
/usr/bin/systemd-cat echo "systemd-cat is working"

i=0
while true; do
    echo "LogDaemon: message number: $i"
    i=$((i+1))
    sleep 1
done
