user333

user333 / stop-inspircd.sh

Last active 3 months ago

user333 revised this gist 3 months ago · 618b17e

1 file changed, 7 insertions

stop-inspircd.sh (file created)
@@ -0,0 +1,7 @@
1 + #!/bin/sh
2 +
3 + FILE="$(dirname $(readlink -f $0))/data/inspircd.pid"
4 + [ ! -f "$FILE" ] && return 1
5 +
6 + kill $(cat "$FILE")
7 + rm "$FILE"