From: "Dmitry V. Levin" <ldv@altlinux.org> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: Re: [devel] обновления пакетов с поддержкой systemd Date: Tue, 17 May 2011 07:21:03 +0400 Message-ID: <20110517032103.GB7895@altlinux.org> (raw) In-Reply-To: <BANLkTi=yJs8zgP57oMGHSsaW38jrQ6Cq=g@mail.gmail.com> [-- Attachment #1: Type: text/plain, Size: 1023 bytes --] On Tue, May 17, 2011 at 07:12:07AM +0400, Alexey Shabalin wrote: [...] > Надо запустить что-то типа > if chkconfig foobar ; then > chkconfig foobar on > fi > (если сервис включен, включить его ещё раз - в этот раз уже с > перенаправлением на systemd) [...] > Я пока придумал только модифицировать post_service: > > --- post_service.def 2011-03-17 01:41:42.000000000 +0300 > +++ post_service 2011-05-17 07:02:27.640147135 +0400 [...] > @@ -14,5 +30,9 @@ > /sbin/chkconfig --add "$1" > else > /sbin/chkconfig "$1" resetpriorities ||: > + [ -f "$SYSTEMD_SERVICE_DIR/$1.service" ] && > + systemd_is_active && > + /sbin/chkconfig --no-redirect "$1" && > + /sbin/chkconfig "$1" on > /sbin/service "$1" condrestart ||: > fi Я бы предпочел, чтобы либо chkconfig resetpriorities выполнял эту синхронизацию, либо появился еще один режим в chkconfig для синхронизации. Вариант с resetpriorities предпочтительнее, поскольку тогда не придется трогать пользователей chkconfig'а. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2011-05-17 3:21 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-05-17 3:12 Alexey Shabalin 2011-05-17 3:21 ` Dmitry V. Levin [this message] 2011-05-17 3:42 ` Alexey Shabalin 2011-05-17 12:35 ` Alexey Shabalin 2011-05-17 13:59 ` Dmitry V. Levin 2011-05-21 12:42 ` Alexey Shabalin 2011-05-27 17:11 ` Dmitry V. Levin 2011-05-30 13:10 ` Alexey Shabalin 2011-05-30 14:22 ` Alexey Shabalin 2011-06-10 18:54 ` Alexey Shabalin 2011-06-10 18:49 ` Alexey Shabalin 2011-08-11 11:36 ` Alexey Shabalin 2012-01-24 21:19 ` Dmitry V. Levin
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=20110517032103.GB7895@altlinux.org \ --to=ldv@altlinux.org \ --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