From 8aef6ae9032be96ace87b5316118c0bf66feb3b6 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Sat, 5 Jan 2019 23:30:59 +0100 Subject: [PATCH] Update systemd documentation --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 73c5e52..45f8f2b 100644 --- a/README.md +++ b/README.md @@ -73,4 +73,14 @@ User=masto-bot TimeoutSec=15 WorkingDirectory=/home/masto-bot/ ExecStart=/usr/bin/python3 bot.py --stream --source=local + +[Install] +WantedBy=multi-user.target +``` + +Then do +``` +systemctl daemon-reload +systemctl enable bot.service +systemctl start bot.service ```