#!/usr/bin/env bash
# ericonr's script for system tasks
# detect session manager;
# systemd -> systemctl
# non-systemd -> loginctl
command -v systemctl >/dev/null 2>&1 && CTL=systemctl
CTL=${CTL:-loginctl}
exec $CTL "$@"