mirror of
https://gitlab.com/pancakes1234/wdiscordbotserver.git
synced 2025-06-16 07:14:21 -06:00
Create idle.sh
This commit is contained in:
parent
cb1885c2d2
commit
169c064f21
12
idle.sh
Normal file
12
idle.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Kill any currently running Node.js processes
|
||||
echo "Stopping any running Node.js processes..."
|
||||
pkill -f "node server.js"
|
||||
|
||||
# Wait for a moment to ensure the process is stopped
|
||||
sleep 2
|
||||
|
||||
# Restart the Node.js server
|
||||
echo "Restarting the server..."
|
||||
node server.js &
|
Loading…
x
Reference in New Issue
Block a user