[V3 Docs] Autostart (#1599)

Moved note to the top, added how to access red log.
This commit is contained in:
Wyn 2018-05-05 19:43:26 -04:00 committed by palmtree5
parent 1cb5394e96
commit f71aa9dd21

View File

@ -37,6 +37,8 @@ Save and exit :code:`ctrl + O; enter; ctrl + x`
Starting and enabling the service
---------------------------
.. note:: This same file can be used to start as many instances of the bot as you wish, without creating more service files, just start and enable more services and add any bot instance name after the **@**
To start the bot, run the service and add the instance name after the **@**:
:code:`sudo systemctl start red@instancename`
@ -45,4 +47,6 @@ To set the bot to start on boot, you must enable the service, again adding the i
:code:`sudo systemctl enable red@instancename`
.. note:: This same file can be used to start as many instances of the bot as you wish, without creating more service files, just start and enable more services and add any bot instance name after the **@**
To view Reds log, you can acccess through journalctl:
:code:`sudo journalctl -u red@instancename`