summaryrefslogtreecommitdiff
path: root/net/DarwinStreamingServer/files/darwin_streaming_server.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/DarwinStreamingServer/files/darwin_streaming_server.sh')
-rw-r--r--net/DarwinStreamingServer/files/darwin_streaming_server.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/DarwinStreamingServer/files/darwin_streaming_server.sh b/net/DarwinStreamingServer/files/darwin_streaming_server.sh
index 3883701ec10f..765c60cfe4a5 100644
--- a/net/DarwinStreamingServer/files/darwin_streaming_server.sh
+++ b/net/DarwinStreamingServer/files/darwin_streaming_server.sh
@@ -24,7 +24,10 @@ start)
stop)
case ${darwin_streaming_server_enable} in
[Yy][Ee][Ss])
- /usr/bin/killall DarwinStreamingS && echo -n ' DarwinStreamingServer'
+ if [ -f /var/run/DarwinStreamingServer.pid ]; then
+ /bin/kill `/bin/cat /var/run/DarwinStreamingServer.pid`
+ echo -n ' DarwinStreamingServer'
+ fi
;;
esac
;;