Mailinglist Archive: opensuse-packaging (134 mails)
| < Previous | Next > |
Re: [opensuse-packaging] Re: Killing processes in %post?
- From: Pavol Rusnak <prusnak@xxxxxxxxxxxx>
- Date: Fri, 29 Jul 2011 12:50:17 +0200
- Message-id: <4E329069.5050205@opensuse.org>
On 07/29/2011 09:44 AM, Stefan Seyfried wrote:
Hrm, maybe creating a "dconf-package" cgroup, put all dconf-service
instances in that group on process start and send a signal to this
group's members instead of using killall. Sounds a little bit
overengineered, though :-)
--
Best Regards / S pozdravom,
Pavol RUSNAK SUSE LINUX, s.r.o
openSUSE Boosters Team Lihovarska 1060/12
PGP 0xA6917144 19000 Praha 9
prusnak[at]opensuse.org Czech Republic
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
So what seems like a good idea is to use
"killall -SIGHUP dconf-service"
or
"killall -SIGUSR1 dconf-service"
and patch dconf-service to do a graceful restart when these signals are
received, right?
No. If I have a script "dconf-service" which has nothing to do with your
dconf-service, it will get killed.
You need to make sure to only kill the dconf-services that belong to your
package. Which is very hard.
Hrm, maybe creating a "dconf-package" cgroup, put all dconf-service
instances in that group on process start and send a signal to this
group's members instead of using killall. Sounds a little bit
overengineered, though :-)
--
Best Regards / S pozdravom,
Pavol RUSNAK SUSE LINUX, s.r.o
openSUSE Boosters Team Lihovarska 1060/12
PGP 0xA6917144 19000 Praha 9
prusnak[at]opensuse.org Czech Republic
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
| < Previous | Next > |