summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/fms/files/fms')
-rwxr-xr-xnet-p2p/fms/files/fms4
1 files changed, 4 insertions, 0 deletions
diff --git a/net-p2p/fms/files/fms b/net-p2p/fms/files/fms
index 712e63722..944417884 100755
--- a/net-p2p/fms/files/fms
+++ b/net-p2p/fms/files/fms
@@ -4,6 +4,10 @@
# $Header: $
start() {
+ if [ "`ps -ef | grep 'fms --daemon'`" ]; then
+ eerror "FMS appears to still be running."
+ return 1
+ fi
cd /var/freenet/fms
su -s /bin/sh -c "./fms --daemon" freenet
eend $?