Created
January 26, 2022 18:51
-
-
Save neocturne/a84652bab5ccfb6a1bc5c4bef7cdce6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
comm="$(basename "$1")" | |
exec systemd-cat -t "$comm" -- \ | |
systemd-run \ | |
--unit="$(systemd-escape -m "$comm-r$(systemd-id128 new).scope")" \ | |
--user \ | |
--quiet \ | |
--scope \ | |
--slice-inherit \ | |
--collect \ | |
-- "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment