From 74296dddd3b754f3fedf1f036b3ba58369c376e6 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Thu, 10 Feb 2022 11:27:50 +0100 Subject: [PATCH] Add script for creating new services --- new-service | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 new-service diff --git a/new-service b/new-service new file mode 100755 index 0000000..5536ed6 --- /dev/null +++ b/new-service @@ -0,0 +1,7 @@ +#!/bin/zsh + +mkdir $1 +ln -s /run/user/1000/supervise.$1/ $1/supervise +echo '#!/bin/zsh' > $1/run +echo "exec $*" >> $1/run +chmod +x $1/run