Skip to content

Commit 37fde85

Browse files
130smikepurvis
authored andcommitted
[doc] Add commands when systemd is chosen. (#78)
When `systemd` is specified as a provider, commands are different. https://wiki.ubuntu.com/SystemdForUpstartUsers [doc] Add systemd start/stop commands.
1 parent 737bef8 commit 37fde85

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

doc/index.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,30 @@ as simple as:
2525
2626
This will create a job called ``myrobot`` on your machine, which launches
2727
base.launch. It will start automatically when you next start your machine,
28-
or you can bring it up and down manually:
28+
or you can bring it up and down manually (command may differ per providers (``upstart`` by default)):
2929

3030
.. code-block:: bash
3131
32+
When upstart is in use
3233
$ sudo service myrobot start
3334
$ sudo service myrobot stop
3435
36+
When systemd in use
37+
$ sudo systemctl start myrobot
38+
$ sudo systemctl stop myrobot
39+
3540
If the job is crashing on startup, or you otherwise want to see what is
3641
being output to the terminal on startup, check the upstart log:
3742

3843
.. code-block:: bash
3944
45+
upstart
4046
$ sudo tail /var/log/upstart/myrobot.log -n 30
4147
48+
49+
systemd
50+
$ sudo journalctl -u myrobot
51+
4252
For more details, please see :doc:`install` and :doc:`uninstall`.
4353

4454

0 commit comments

Comments
 (0)