From owner-freebsd-questions@FreeBSD.ORG Sun Feb 9 05:03:11 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3EEF35AC for ; Sun, 9 Feb 2014 05:03:11 +0000 (UTC) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A1310143C for ; Sun, 9 Feb 2014 05:03:10 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id l4so3821200lbv.19 for ; Sat, 08 Feb 2014 21:03:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=WPPTHHgaz5xOJcPETJfXUNXTrk9/45FhwsehCko9Nhw=; b=y0kroqePK4BLTPhdNg6a6biiTaYHEiG5tHOZLLOFztE9/nwXAXpzdtnpJvWYrxpFQr nO3iky5500y9YG7nRjVZZNJY1tnEdRfSV+UrVcFkMC0vx5I/l16cyoYIbuc8yOM0Ds55 rulXX44PwubE2vll6bmMK2T+UHdyObGKe6Drc6QzCzAGeKa6zJK8618g3nCQVeWaM5d6 zgJmtXB9EH/SQUsverQAS72646hE0i/quCNO7WBXAGIaXJ6yFSWliomDAPh9UdmxXEmF Ys5HyifD0+bc/iNzo29KEq2lOilYGEqyDt9+BipNI8XZpJHR8wkqe8dh4ZgA6ErqQQ27 5cFw== MIME-Version: 1.0 X-Received: by 10.112.137.65 with SMTP id qg1mr15778265lbb.7.1391922188007; Sat, 08 Feb 2014 21:03:08 -0800 (PST) Received: by 10.152.203.233 with HTTP; Sat, 8 Feb 2014 21:03:07 -0800 (PST) Date: Sat, 8 Feb 2014 21:03:07 -0800 Message-ID: Subject: UWSGI from INI From: Sergei G To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Feb 2014 05:03:11 -0000 Hi, several months ago I adjusted uwsgi script to load most of its configuration from INI file instead of rc.conf file. It utilizes all of uwsgi properties this way. Do you think it is worth posting it to make available to greater audience? I called it uwsgiini. Here is the source code: #!/bin/sh # # PROVIDE: uwsgiini # REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable uwsgi: # # uwsgiini_enable (bool): Set it to "YES" to enable uwsgi # Default is "NO". # # If you would like to have multiple uWSGI instances running, you can # define multiple profiles: # # uwsgiini_profiles (str): Set the list of uwsgi profiles # Default is "". # # For each profile you can then define different options (except for # uwsgiini_enable) using the syntax uwsgi__