ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Shabalin <a.shabalin@gmail.com>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] systemd & /var/run
Date: Thu, 14 Mar 2019 15:36:30 +0300
Message-ID: <CAEdvWkSRYBWyW=jomREXxmFzmK1TTQ9gpb_zPtO+fVRvMp8bhA@mail.gmail.com> (raw)
In-Reply-To: <CAATpADXijC_SyVpdR5zSkxH05_N_adWQOuFtgbAhYGRKGu5t=g@mail.gmail.com>

чт, 14 мар. 2019 г. в 14:37, Vadim Gusev <kopilo4ka@gmail.com>:
>
> Добрый день.
> Сейчас система использует systemd и монтирует разделы так:
>
> $ mount|grep run
> runfs on /run type tmpfs (rw,nosuid,relatime,mode=755)
> runfs on /var/run type tmpfs (rw,nosuid,relatime,mode=755)
> runfs on /var/lock type tmpfs (rw,nosuid,relatime,mode=755)
>
> При установке пакета, например nagios, создается pid файл:
> /var/run/nagios/nagios.pid
>
> После перезагрузки /var/run очищается и приложение уже не может стартовать, т. к. не может создать pid.
>
> Таких приложений много, баги висят, в том числе и "замените /var/run -> /run".

На nagios я не увидел бага.

> Вопрос - что делать?
Чинить пакеты.
Все пакеты, которые pid файлы размещают не просто в /run (или в
/var/run, а во вложенной директории (/run/nagios/ или /var/run/nagios)
должны еще содержать tmpfiles конфиг, который будет создавать эту
директорию. Простой перенос /var/run в /run не поможет, если вложенную
директорию никто не создаст.


-- 
Alexey Shabalin

       reply	other threads:[~2019-03-14 12:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-14 12:36 ` Alexey Shabalin [this message]
2019-03-14 13:37     ` Anton V. Boyarshinov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEdvWkSRYBWyW=jomREXxmFzmK1TTQ9gpb_zPtO+fVRvMp8bhA@mail.gmail.com' \
    --to=a.shabalin@gmail.com \
    --cc=shaba@altlinux.ru \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git