Add sunshin-run and -stop wrapper scripts
These can be used to manage starting and stopping processes that spawn children that otherwise would not be terminated when the moonlight session ends
This commit is contained in:
14
overlay/usr/bin/sunshine-stop
Executable file
14
overlay/usr/bin/sunshine-stop
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
###
|
||||
# File: sunshine-stop
|
||||
# Project: bin
|
||||
# File Created: Tuesday, 23rd August 2023 3:28:52 pm
|
||||
# Author: Josh.5 (jsunnex@gmail.com)
|
||||
# -----
|
||||
# Last Modified: Friday, 23rd August 2023 4:21:00 pm
|
||||
# Modified By: Josh.5 (jsunnex@gmail.com)
|
||||
###
|
||||
set -e
|
||||
|
||||
# Terminate any running sunshine-run processes:
|
||||
kill $(ps aux | grep -v grep | grep sunshine-run | awk '{print $2}')
|
||||
Reference in New Issue
Block a user