From 7089e7b4e570710acac408bf95c688932a491707 Mon Sep 17 00:00:00 2001
From: Chocobozzz <me@florianbigard.com>
Date: Wed, 5 Dec 2018 17:44:36 +0100
Subject: Improve information regarding prune storage script

---
 support/doc/tools.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'support/doc')

diff --git a/support/doc/tools.md b/support/doc/tools.md
index 69d68464a..4f806a9db 100644
--- a/support/doc/tools.md
+++ b/support/doc/tools.md
@@ -198,10 +198,10 @@ $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production
 ### prune-storage.js
 
 Some transcoded videos or shutdown at a bad time can leave some unused files on your storage.
-To delete them (a confirmation will be demanded first):
+Stop PeerTube and delete these files (a confirmation will be demanded first):
 
 ```
-$ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run prune-storage
+$ sudo systemctl stop peertube && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run prune-storage
 ```
 
 ### optimize-old-videos.js
-- 
cgit v1.2.3