Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. # This program tries to start the daemons for StatusNet.
  2. # Note that the 'maildaemon' needs to run as a mail filter.
  3.  
  4. ARGSG=
  5. ARGSD=
  6.  
  7. if [ $# -gt 0 ]; then
  8. ARGSG="$ARGSG -s$1"
  9. ID=`echo $1 | sed s/\\\\./_/g`
  10. ARGSD="$ARGSD -s$1 -i$ID"
  11. fi
  12.  
  13. if [ $# -gt 1 ]; then
  14. ARGSD="$ARGSD -p$2"
  15. ARGSG="$ARGSG -p$2"
  16. fi
  17.  
  18. DIR=`dirname $0`
  19. DAEMONS=`php $DIR/getvaliddaemons.php $ARGSG`
  20.  
  21. for f in $DAEMONS; do
  22.  
  23. printf "Starting $f...";
  24. php $f $ARGSD
  25. printf "DONE.\n"
  26.  
  27. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement