From: Igor Vlasenko <vlasenko@imath.kiev.ua> To: devel@lists.altlinux.org Subject: [devel] I: systemd policy for post/preun Date: Wed, 1 May 2013 19:04:22 +0300 Message-ID: <20130501160422.GA21950@dad.imath.kiev.ua> (raw) Господа, переезд на systemd состоялся, /usr/sbin/{post,preun}_service отлажены и работают корректно в любой комбинации наличия/отсутстивия init.d / systemd .service файлов. Таким образом, стандарт de-facto это "при наличии systemd .service файла добавить в %post %post_service и в %preun %preun_service" Пора бы, наверное, это узаконить и явно выписать в полиси. Хочу заодно написать и соответствующий тест репокопа. В настоящий момент по запросу select pkgid from rpm_scripts_postin as a where a.pkgid in ( select pkgid from rpm_files where filename glob '/lib/systemd/system/*.service') and postin not glob '*/sbin/post_service*' and postinprog not glob '*/sbin/post_service*'; находится 12 пакетов, использующих свои собственные трюки (NetworkManager,iptables,openssh-server,postfix,plymouth,...) явно вызывающих systemctl без проверки, есть ли он cloud-init либо вообще ничего не использующих (gdm,selinux-policy-altlinux,...) Последннее выглядит как баг, для предотвращения которого полезно было бы иметь тест repocop. Предыдущее тоже стоило бы привести по возможности в стандартный вид. ModemManager-0.7.990-alt1.git20130422.x86_64 NetworkManager-0.9.8.0-alt5.git20130327.x86_64 cloud-init-0.6.3-alt1.noarch daemontools-0.76-alt13.x86_64 gdm-3.8.1.1-alt1.1.x86_64 iptables-1.4.18-alt1.x86_64 iptables-ipv6-1.4.18-alt1.noarch openssh-server-5.9p1-alt6.x86_64 plymouth-0.8.8-alt4.git.054d29.x86_64 postfix-2.9.5-alt1.x86_64 selinux-policy-altlinux-0.0.1-alt3.noarch vsftpd-3.0.2-alt2.x86_64 -- Dr. Igor Vlasenko -------------------- Topology Department Institute of Math Kiev, Ukraine -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
reply other threads:[~2013-05-01 16:04 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20130501160422.GA21950@dad.imath.kiev.ua \ --to=vlasenko@imath.kiev.ua \ --cc=devel@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 Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git