mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2024-11-10 00:59:38 +00:00
add wrapper script for systemctl in userspace (systemctl --user)
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
This commit is contained in:
parent
e614745a11
commit
0052b338e8
2 changed files with 12 additions and 0 deletions
1
bin/sysctl-user
Symbolic link
1
bin/sysctl-user
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
systemctl-user
|
11
bin/systemctl-user
Executable file
11
bin/systemctl-user
Executable 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 "$@"
|
Loading…
Reference in a new issue