From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Status: No, score=-2.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from mail-ua0-f196.google.com (mail-ua0-f196.google.com [209.85.217.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 08568207DF for ; Fri, 9 Sep 2016 22:51:20 +0000 (UTC) Received: by mail-ua0-f196.google.com with SMTP id 35so3354876uaq.1 for ; Fri, 09 Sep 2016 15:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=masterleep-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jbQ9wu+UBd11LKPOTCiqsprptI/n7heVun6C4J0r79g=; b=UW+esVy5K6iMIKLQzUgVmGzBZxkznFybd245IzVquhhzvXBGG9QnZcoIqTn1DhUtTg AOcncLmP/GkbnC1so09L1F6PLQ87NcO3+8Y/GpPB4xaruzcvq9uQ63s+6pGbmy1miuli s52BQVFKGsqpRzJuwL55tTgyLyOcwGBfZylqloqtoxhmwpyBDTmojSoIIaoPBgmSN2jS ENIHOJri5ZtJijpVY8Y7HXCknUM0B/HBREkOzk3/kGzNEpoxKr6ULWWsJ6k96cadZ/1p SlXdPWRU1CTQJuKxKnq/h7PkPsP12At0G5PbLZx3wsvjVea9yWh3pc2aIHlEMr6RqZ3k F/eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jbQ9wu+UBd11LKPOTCiqsprptI/n7heVun6C4J0r79g=; b=ZeCP/QZjv7RqIo0VytAIvnlXFifwIwGbDupyBml1sV9kqEJozE8pIyY5gHwxfRnnZK sK4q5MaI0nG3j2kBvufKCyZ6rkdtMHgqYaCTHJwgOLABqiG1CarTyaDvGZPCAif+kI5H Ugybmin515HpetxhWbpfDyKO1xiiP73b5nvMo5dLqmZHMSVIREdDOOe9q/XDrxP6QkWy e/Jr86R4ILV2c9D/ig55pPgA7ME40MLjhbJ4prfmf7wwIZw+3PqzOkDdPJZItipXkxqg yuH+UaNG73tUCvauZmKBSP7417S9R8iPoel9xdkhFas7BbjfU2r4T0Wem2MCmA/R2l2h 9HJQ== X-Gm-Message-State: AE9vXwMfL+0Uhv69N01/nU0iWYkgQ+CYsTC+TqfkeQ2AmSuzxl7nZKB7LmMhyOvMq6zOMxbt9gld3i7vGjZeTA== X-Received: by 10.176.3.146 with SMTP id 18mr4157323uau.29.1473461479014; Fri, 09 Sep 2016 15:51:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.59.2 with HTTP; Fri, 9 Sep 2016 15:51:18 -0700 (PDT) In-Reply-To: <20160909224532.GA27877@starla> References: <20160909222313.GA24953@starla> <20160909224532.GA27877@starla> From: Bill Lipa Date: Fri, 9 Sep 2016 15:51:18 -0700 Message-ID: Subject: Re: systemd with logs to journald To: Eric Wong Cc: unicorn-public@bogomips.org Content-Type: text/plain; charset=UTF-8 List-Id: Thanks for the pointers! I came across the official example too late, but I'll convert over now. On Fri, Sep 9, 2016 at 3:45 PM, Eric Wong wrote: > Please don't drop the Cc: to unicorn-public@bogomips.org, > other readers are following along. > > Bill Lipa wrote: >> If I do that, the output goes nowhere, I assume because I'm using the >> -D flag on the ExecStart: >> ExecStart=/home/ops/bin/bundle exec "unicorn_rails -D -c >> config/unicorn.rb -E beta" > > You should never need -D (--daemonize) with systemd or any > process manager. -D is intended for standalone init scripts > when the launching process could go away before the daemon. > >> I'll try to redo my service file based on the one at >> https://unicorn.bogomips.org/examples/unicorn%40.service instead. >> Thanks for the response. > > Yes, that service file should be the recommended way for > systemd.