<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - systemctl poweroff/reboot does not bring down user services respectfully"
href="https://bugs.freedesktop.org/show_bug.cgi?id=77416">77416</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>systemctl poweroff/reboot does not bring down user services respectfully
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vimregisters@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>I have a .service file that goes something like
[Unit]
Description=Google Chrome Browser
After=startx.service
[Service]
ExecStart=/usr/bin/google-chrome
KillMode=process
KillSignal=SIGTERM
When I do 'systemctl --user stop/restart chrome' or 'systemctl --user default'
systemd performs perfectly and the expected happens, chrome exits cleanly or
restarts cleanly.
However, when I do something like 'systemctl reboot', the order in which the
services are brought down is respected (i.e. chrome and pekwm before X) but the
method of bringing the services down is not. After a reboot, chrome whines
about being improperly shutdown, and sometimes even has a lock on the profile
preventing chrome from opening again.
I suspect this is a systemd problem since using any of the commands like --user
isolate/default/stop/restart etc, it works perfectly, but it all goes to crap
when I do systemctl reboot</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>