Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user.catalan > #5527

Re: Systemd no m'atura un servei

From Alex Muntada <alexm@debian.org>
Newsgroups linux.debian.user.catalan
Subject Re: Systemd no m'atura un servei
Date 2018-04-29 14:30 +0200
Message-ID <vJTCN-4rm-7@gated-at.bofh.it> (permalink)
References <vJrQd-1BQ-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hola Narcis,

> Tinc aquest fitxer enregistrat: /etc/systemd/system/eventoj.service
> I l'acció ExecStart és cridada tant quan s'inicia el sistema com quan
> s'executa: systemctl start eventoj
> Però l'acció ExecStopPost no és cridada en aturar el sistema ni tampoc
> en executar manualment: systemctl stop eventoj

Jo diria que has d'utilitzar ExecPost. He buscat ExecStop a
/lib/systemd/system/*.service i hi ha uns quants serveis que ho
utilitzen, així que jo crec que hauria de funcionar.

El servei ssh ho fa diferent i utilitza KillMode=process, potser
et serveix com alternativa.

> (també ho he provat amb ExecStop, que només s'utilitza per quan s'ha
> iniciat abans)

Això no ho entenc. Per què vols que s'aturi si no s'ha iniciat
abans?

Salut,
Alex

Back to linux.debian.user.catalan | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Systemd no m'atura un servei Narcis Garcia <debianlists@actiu.net> - 2018-04-28 08:50 +0200
  Re: Systemd no m'atura un servei Alex Muntada <alexm@debian.org> - 2018-04-29 14:30 +0200
    Re: Systemd no m'atura un servei Narcis Garcia <debianlists@actiu.net> - 2018-04-30 10:50 +0200
      Re: Systemd no m'atura un servei Alex Muntada <alexm@debian.org> - 2018-05-01 13:10 +0200

csiph-web