Культурный офтопик
 help / color / mirror / Atom feed
* [room] ещё штрих про systemd
@ 2019-03-06 12:32 Michael Shigorin
  0 siblings, 0 replies; only message in thread
From: Michael Shigorin @ 2019-03-06 12:32 UTC (permalink / raw)
  To: smoke-room

	Здравствуйте.
Ещё маленькая зарисовка.
Опакечиваю специальные настройки acpid для e2k.
Пишу:

%define acpidrc %_sysconfdir/sysconfig/acpid
%define acpid_args ACPID_ARGS+="-S"
# ...

%post
grep -wq '^%acpid_args$' %acpidrc ||
        echo '%acpid_args' >> %acpidrc

%preun
sed -i '/^%acpid_args$/d' %acpidrc ||:

Всё красиво, при установке-сносе отрабатывает.  Единственное "но":

acpid.service: Ignoring invalid environment assignment 'ACPID_ARGS+=nosocket=1': /etc/sysconfig/acpid

Пришлось сделать ACPID_ARGS="-S" с бэкапилкой конфига,
но результат получится недружественным к правке вручную
(и то, что при нескольких присвоениях берётся _первое_,
а не последнее -- тоже ни разу не least surprise).

Такому бестолковому апстриму неохота даже баги вешать :-[

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-06 12:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-06 12:32 [room] ещё штрих про systemd Michael Shigorin

Культурный офтопик

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/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 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
		smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
	public-inbox-index smoke-room

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


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