add args to daemons fetch
This commit is contained in:
		@@ -20,9 +20,6 @@
 | 
				
			|||||||
# This program tries to start the daemons for Laconica.
 | 
					# This program tries to start the daemons for Laconica.
 | 
				
			||||||
# Note that the 'maildaemon' needs to run as a mail filter.
 | 
					# Note that the 'maildaemon' needs to run as a mail filter.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
DIR=`dirname $0`
 | 
					 | 
				
			||||||
DAEMONS=`php $DIR/getvaliddaemons.php`
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
ARGS=
 | 
					ARGS=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ $# -gt 0 ]; then
 | 
					if [ $# -gt 0 ]; then
 | 
				
			||||||
@@ -33,6 +30,9 @@ if [ $# -gt 1 ]; then
 | 
				
			|||||||
    ARGS="$ARGS -p$2"
 | 
					    ARGS="$ARGS -p$2"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					DIR=`dirname $0`
 | 
				
			||||||
 | 
					DAEMONS=`php $DIR/getvaliddaemons.php $ARGS`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for f in $DAEMONS; do
 | 
					for f in $DAEMONS; do
 | 
				
			||||||
 | 
					
 | 
				
			||||||
         echo -n "Starting $f...";
 | 
					         echo -n "Starting $f...";
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user