]> git.pld-linux.org Git - packages/flixengine.git/commitdiff
- use generic portmapper check from rc-scripts
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 26 Apr 2007 22:19:06 +0000 (22:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    flixengine.init -> 1.13

flixengine.init

index 6369573924b8ae92cc9d7dcccb7b9e943460deb3..4a0fc5186992b59b7509806b762c22f6be30986f 100644 (file)
@@ -22,19 +22,13 @@ PORT=2372
 USERID=flixd
 INTERFACE=lo
 
-check_portmap() {
-       if [ ! -f /var/lock/subsys/portmap ]; then
-               echo >&2 "ERROR: portmap does not appear to be running."
-               echo >&2 "Flix Engine requires the portmap service to run."
-               exit 1
-       fi
-       # test for running portmapper
-}
+if [ "$1" != "stop" ]; then
+       check_portmapper || { nls "Error: portmap isn't running" && exit 0; }
+fi
 
 start(){
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/flixd ]; then
-               check_portmap
                msg_starting "Flix Engine"
                daemon --user $USERID /usr/sbin/flixd --authdir=$AUTHDIR \
                        --interface=$INTERFACE --port=$PORT --reuseaddr \
This page took 0.062257 seconds and 4 git commands to generate.