Преглед изворни кода

Simplify the systemctl commands

Jeremy Stretch пре 6 година
родитељ
комит
be9df3c07d

+ 2 - 4
docs/installation/4-http-daemon.md

@@ -125,10 +125,8 @@ Then, start the `netbox` and `netbox-rq` services and enable them to initiate at
 
 ```no-highlight
 # systemctl daemon-reload
-# systemctl start netbox.service
-# systemctl start netbox-rq.service
-# systemctl enable netbox.service
-# systemctl enable netbox-rq.service
+# systemctl start netbox netbox-rq
+# systemctl enable netbox netbox-rq
 ```
 
 You can use the command `systemctl status netbox` to verify that the WSGI service is running:

+ 2 - 4
docs/installation/migrating-to-systemd.md

@@ -26,10 +26,8 @@ Then, start the `netbox` and `netbox-rq` services and enable them to initiate at
 
 ```no-highlight
 # systemctl daemon-reload
-# systemctl start netbox.service
-# systemctl start netbox-rq.service
-# systemctl enable netbox.service
-# systemctl enable netbox-rq.service
+# systemctl start netbox netbox-rq
+# systemctl enable netbox netbox-rq
 ```
 
 You can use the command `systemctl status netbox` to verify that the WSGI service is running:

+ 1 - 2
docs/installation/upgrading.md

@@ -88,8 +88,7 @@ This script:
 Finally, restart the gunicorn and RQ services:
 
 ```no-highlight
-# sudo systemctl restart netbox
-# sudo systemctl restart netbox-rq
+# sudo systemctl restart netbox netbox-rq
 ```
 
 !!! note