add wrapper script for systemctl in userspace (systemctl --user)

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
This commit is contained in:
Andrei Jiroh Halili 2024-09-08 08:20:48 +08:00
parent e614745a11
commit 0052b338e8
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
2 changed files with 12 additions and 0 deletions

1
bin/sysctl-user Symbolic link
View file

@ -0,0 +1 @@
systemctl-user

11
bin/systemctl-user Executable file
View file

@ -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 "$@"