From: "Такасеев Алексей Геннадиевич" <alexei@taf.ru> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: [devel] Нужно небольшое пояснение по *.service Date: Tue, 14 May 2013 09:29:50 +0000 (GMT) Message-ID: <1114696387.23460.1368523790726.JavaMail.root@ilimnet.ru> (raw) In-Reply-To: <1451677210.23457.1368523747724.JavaMail.root@ilimnet.ru> Приветствую! Нужна небольшая консультация по тому, как правильно создать *.service-файл для такой ситуации: Есть некий сервис, которя запускается оооочень долго, и завершает работу так же приличное время. В среднем от 3 до 10 минут, реально запускается 100500 разных программ от встроенного LDAP до демонов на java и jetty через собственную систему скриптов. Нарисовал вот такой файл: [Unit] Description=Zimbra mail service After=network.service remote-fs.target syslogd.service ntpd.service crond.service [Service] Type=oneshot RemainAfterExit=yes StandardOutput=syslog ExecStart=/etc/rc.d/init.d/zimbra start ExecStop=/etc/rc.d/init.d/zimbra stop ExecReload=/etc/rc.d/init.d/zimbra reload # The server might be slow to stop, and that's fine. Don't kill it SendSIGKILL=no [Install] WantedBy=multi-user.target Запускается все замечательно, а вот с остановом возникла серьезная проблема - systemd просто убивает все процессы, что не есть правильно, ибо по zimbra stop выполняется пароход и небольшая баржа всяких действий. Подскажите, плз, как заставить systemd дожаться завершения /etc/rc.d/init.d/zimbra stop, и только потом продолжить свои действия? --
next parent reply other threads:[~2013-05-14 9:29 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-05-14 9:29 ` Такасеев Алексей Геннадиевич [this message] 2013-05-14 9:58 ` Sergei Epiphanov
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=1114696387.23460.1368523790726.JavaMail.root@ilimnet.ru \ --to=alexei@taf.ru \ --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