Skip to content

check for systemd before running the timesyncd exit hook. #398

@perkelix

Description

@perkelix

As per Debian bug, it would be desirable to start the timesyncd hook with something that checks for the presence of timesyncd and, if NOT found, immediately exits the hook.

Debian's dhclient exit hook might provide a good starting point:

if [ ! -d /run/systemd/system ]; then
	return
fi
if [ ! -x /lib/systemd/systemd-timesyncd ]; then
	return
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions