You are not logged in.

#1 2018-07-15 13:45:38

ghorvath
Member
Registered: 2015-10-01
Posts: 130

conky-session killal with or without -9?

Recently something fishy is going on with my conky session, and simple killal does not kill it (not investigated the cause, yet). I need to do a

killal -9 conky

to completely kill it. I am wondering if there is a specific reason that currently we use killall without -9 in bl-conky-session.

Offline

#2 2018-07-16 02:17:28

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,677
Website

Re: conky-session killal with or without -9?

killall's default signal is 15 or SIGTERM. This is usually enough, and allows a process to shut down cleanly, tidying up first. 9 or SIGKILL kills the process right off, no ifs or buts, and should be avoided unless (as in your case) nothing else works.
https://unix.stackexchange.com/question … -9-sigkill


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#3 2018-07-16 02:19:58

DeepDayze
Member
From: In Linux Land
Registered: 2017-05-28
Posts: 541

Re: conky-session killal with or without -9?

I do notice with killing a process with -9 option there may be zombie process(es) left behind taking up space.


Real Men Use Linux

Offline

#4 2018-07-16 13:26:05

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,596

Re: conky-session killal with or without -9?

Upgrade may do the trick

apt-cache policy conky
conky:
  Installed: 1.10.6-1
  ...

If it shows something else, you may want to

sudo apt remove --purge conky
sudo apt install conky

At least on this machine conky did not update with usual system update/upgrade.

Offline

#5 2018-07-16 16:10:56

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: conky-session killal with or without -9?

For killing a conky session there is also Sector11's method with pkill:

pkill -xf "conky -q -c $HOME/.config/conky/BL-Default.conkyrc"

Using the same path in " " as for starting the conky is required.

Offline

#6 2018-07-16 23:16:45

ghorvath
Member
Registered: 2015-10-01
Posts: 130

Re: conky-session killal with or without -9?

@johnraff Thanks for the explanation, makes sense now.

@DeepDayze Hm, I did not notice something like that, but I actually never tested this.

@brontosaurusrex Thanks, but I do not understand. I have conky-all (not conky) 1.10.6-1 installed, and the debian package page does not show any newer packages, not even for backports. So why would I need to update conky? (I have Helium with backports, but nothing installed from there, and no buster either.)

@martix I do not mind using killall. I would restart all conky sessions, anyway (takes less effort than to only restart one of them), so might as well kill all of them before. :-) But thanks, good to know about pkill if I need to combine grep and kill together.

Offline

#7 2018-07-16 23:27:44

hhh
That's easy!
Registered: 2015-09-17
Posts: 6,118
Website

Re: conky-session killal with or without -9?

Moderator here, I'm moving this to BL & General Linux Discussion...

Offline

#8 2018-07-16 23:39:02

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,596

Re: conky-session killal with or without -9?

I had similar trouble with older versions of conky and...., well.

Offline

Board footer

Powered by FluxBB