mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 21:21:32 +00:00
hack: rename scripts to hack
This commit is contained in:
14
hack/debug/session.sh
Executable file
14
hack/debug/session.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
stop_service_if_running() {
|
||||
if sudo systemctl is-active "${1}" > /dev/null 2>&1
|
||||
then
|
||||
sudo systemctl stop "${1}"
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
stop_service_if_running "kratad.service"
|
||||
stop_service_if_running "kratanet.service"
|
||||
tmuxp load "$(dirname "${0}")/session.yml"
|
Reference in New Issue
Block a user