On 03/12/2015 05:13 AM, Don Armstrong wrote:
I suppose someone could make an argument that including a verbose flag
or something might be useful,
This is on systemd's TODO list btw.:
http://cgit.freedesktop.org/systemd/systemd/tree/TODO
- Add a verbose mode to "systemctl start" and friends that explains
what is being done or not done
So the answer to the original question is: it's just not implemented
yet.
The verbosity notwithstanding, the exit code of 'systemctl start' does
reflect if something goes wrong:
# cat > /etc/systemd/system/demo-fail.service
[Service]
Type=oneshot
ExecStart=/bin/false
(( press Ctrl+D here ))
# systemctl daemon-reload
# systemctl start demo-fail.service
Job for demo-fail.service failed. See 'systemctl status
demo-fail.service' and 'journalctl -xn' for details.
# echo $?
1
# cat > /etc/systemd/system/demo-success.service
[Service]
Type=oneshot
ExecStart=/bin/true
(( press Ctrl+D here ))
# systemctl daemon-reload
# systemctl start demo-success.service
# echo $?
0
# rm /etc/systemd/system/demo-success.service \
/etc/systemd/system/demo-fail.service
# systemctl daemon-reload
Christian
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/55014e40.2090...@iwakd.de