From owner-freebsd-stable@freebsd.org Wed Aug 31 23:12:52 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5A07BC9186; Wed, 31 Aug 2016 23:12:52 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 66E1C8F0; Wed, 31 Aug 2016 23:12:52 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from amavis-ori.ijs.si (localhost [IPv6:::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.ijs.si (Postfix) with ESMTPS id 3sPh4c6yVgz1JX; Thu, 1 Sep 2016 01:12:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= user-agent:message-id:organization:subject:subject:from:from :date:date:content-transfer-encoding:content-type:content-type :mime-version:received:received:received:received; s=jakla4; t= 1472685165; x=1475277166; bh=dF5ZRw3RVkovyqtMaXsp19zV5AMmNOJ5R9i s2nJyk2s=; b=kSy6kkOlAcu5I5A58htEwxhiYxQaCoTrWx3s7syyWbzGq9K2NXA QUbYK0p6xDJEuPcYk/Lgqc15L1T2HfvlaopIaBdr5tobRpenIk8Ss352np6mGzvZ N1UOBg+aPlVzZbTQdRPAeNKvmcB0sdcRIXZdtQ6v/UZX1TuZMHQU8Wbs= X-Virus-Scanned: amavisd-new at ijs.si Received: from mail.ijs.si ([IPv6:::1]) by amavis-ori.ijs.si (mail.ijs.si [IPv6:::1]) (amavisd-new, port 10026) with LMTP id 1Mw7uA2Civ3D; Thu, 1 Sep 2016 01:12:45 +0200 (CEST) Received: from mildred.ijs.si (mailbox.ijs.si [IPv6:2001:1470:ff80::143:1]) by mail.ijs.si (Postfix) with ESMTP id 3sPh4Y6dcQz1JW; Thu, 1 Sep 2016 01:12:45 +0200 (CEST) Received: from nabiralnik.ijs.si (nabiralnik.ijs.si [IPv6:2001:1470:ff80::80:16]) by mildred.ijs.si (Postfix) with ESMTP id 3sPh4Y46v7z1RT; Thu, 1 Sep 2016 01:12:45 +0200 (CEST) Received: from sleepy.ijs.si (2001:1470:ff80:e001::1:1) by webmail.ijs.si with HTTP (HTTP/1.1 POST); Thu, 01 Sep 2016 01:12:45 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 01 Sep 2016 01:12:45 +0200 From: Mark Martinec To: freebsd-stable@freebsd.org, ports@freebsd.org Subject: Ephemeral /var/run and creating port-specific subdir at service startup time Organization: Jozef Stefan Institute Message-ID: <6eb3915fa7d4a16b286810e3da298f4d@mailbox.ijs.si> X-Sender: Mark.Martinec+freebsd@ijs.si User-Agent: Roundcube Webmail/1.2.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2016 23:12:52 -0000 I prefer to have a /var/run file system reside on a tmpfs as its contents is small and ephemeral in its nature (like pid files, lock files, sockets), need not be preserved across reboots, and should not have to depend on any physical disk. The problem is that some programs/services/ports like to create their own subdirectory under /var/run. This works fine if such subdirectory is created (when missing) by their rc.d script, such as salt, dbus, jenkins, clamav-clamd, isc-dhcpd, kibana. Unfortunately there are other ports which create a subdirectory under /var/run at the installation time (pkg install). In this case their subdirectory is missing on a reboot when /var/run is re-created afresh, and they fail to start. So my question is: are such ports (like influxdb, grafana3) which do not create their subdirectory at a startup time in error and a bug report is warranted, or am I wrong in expecting that /var/run may be ephemeral and is such a setup (as is common in Linux) unsupported? Mark