[Docs] Update autostart guides to use -O flag (#3354)

* Update autostart_systemd.rst

* Update autostart_pm2.rst
This commit is contained in:
jack1142
2020-01-12 23:41:29 +01:00
committed by Michael H
parent fdfbfe7b60
commit 54711b2054
2 changed files with 9 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ In order to create the service file, you will first need the location of your :c
# If you are using pyenv
pyenv shell <name>
which redbot
which python
Then create the new service file:
@@ -33,7 +33,7 @@ Paste the following and replace all instances of :code:`username` with the usern
After=multi-user.target
[Service]
ExecStart=path %I --no-prompt
ExecStart=path -O -m redbot %I --no-prompt
User=username
Group=username
Type=idle