From 0052b338e8b5bca5d0c0fc58d161dd074da33811 Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Sun, 8 Sep 2024 08:20:48 +0800 Subject: [PATCH] add wrapper script for systemctl in userspace (systemctl --user) Signed-off-by: Andrei Jiroh Halili --- bin/sysctl-user | 1 + bin/systemctl-user | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 120000 bin/sysctl-user create mode 100755 bin/systemctl-user diff --git a/bin/sysctl-user b/bin/sysctl-user new file mode 120000 index 0000000..4418cd8 --- /dev/null +++ b/bin/sysctl-user @@ -0,0 +1 @@ +systemctl-user \ No newline at end of file diff --git a/bin/systemctl-user b/bin/systemctl-user new file mode 100755 index 0000000..5f6bba0 --- /dev/null +++ b/bin/systemctl-user @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# A wrapper script as an alias for calling "systemctl --user" + +if [[ $1 == "" ]]; then + echo "Usage: $0 command..." + echo "For more information on how to use systemctl on userspace, see man:systemctl(1)" + exit 1 +fi + +exec systemctl --user "$@" \ No newline at end of file