Re: How to shutdown when using Openbox

MJ Fleming <[email protected]> Sat, 24 Mar 2018 22:02:16 -0500
Newsgroups gmane.comp.window-managers.openbox
Message-ID <CABR6ocjfsF0Y9PzSnuYO7d7=F_-Js9C6JRuMXnqaggC0KkujKw@mail.gmail.com>
--===============7673612834417288776==
Content-Type: multipart/alternative; boundary="000000000000ea1373056833e4a0"

--000000000000ea1373056833e4a0
Content-Type: text/plain; charset="UTF-8"

> Trying to do that _within openbox_ is like cutting a branch on which you
are sitting

I don't feel that's actually true. I haven't looked at the source so I'm
not totally sure what the function of openbox --exit is (I have read it
tries to kill any open processes but don't quote me).

However, systemd certainly does permit processes to persist after logout.
And under Debian, unless I have a very borked system, I'm able to execute
something like openbox --exit && systemctl poweroff, I'm assuming it
wouldn't be much to sleep the poweroff 10 seconds and pkill -u myuser after
openbox --exit if you want to be really anal about it.

It's also possible to run X and openbox as systemd services which would
then be conflicted by the poweroff or reboot targets in systemd, but I
think that method has some caveats in itself. There are some instructions
on Archwiki under the systemd article.

Just some thoughts.

--000000000000ea1373056833e4a0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">&gt; Trying to do that _within openbox_ is like cutting a =
branch on which you are sitting<div><br></div><div>I don&#39;t feel that&#3=
9;s actually true. I haven&#39;t looked at the source so I&#39;m not totall=
y sure what the function of openbox --exit is (I have read it tries to kill=
 any open processes but don&#39;t quote me).</div><div><br></div><div>Howev=
er, systemd certainly does permit processes to persist after logout. And un=
der Debian, unless I have a very borked system, I&#39;m able to execute som=
ething like openbox --exit &amp;&amp; systemctl poweroff, I&#39;m assuming =
it wouldn&#39;t be much to sleep the poweroff 10 seconds and pkill -u myuse=
r after openbox --exit if you want to be really anal about it.</div><div><b=
r></div><div>It&#39;s also possible to run X and openbox as systemd service=
s which would then be conflicted by the poweroff or reboot targets in syste=
md, but I think that method has some caveats in itself. There are some inst=
ructions on Archwiki under the systemd article.</div><div><br></div><div>Ju=
st some thoughts.</div></div>

--000000000000ea1373056833e4a0--

--===============7673612834417288776==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18Kb3BlbmJveCBt
YWlsaW5nIGxpc3QKb3BlbmJveEBpY2N1bHVzLm9yZwpodHRwOi8vaWNjdWx1cy5vcmcvbWFpbG1h
bi9saXN0aW5mby9vcGVuYm94

--===============7673612834417288776==--