فهرست منبع

Simplify the systemctl commands

Jeremy Stretch 6 سال پیش
والد
کامیت
be9df3c07d
3فایلهای تغییر یافته به همراه5 افزوده شده و 10 حذف شده
  1. 2 4
      docs/installation/4-http-daemon.md
  2. 2 4
      docs/installation/migrating-to-systemd.md
  3. 1 2
      docs/installation/upgrading.md

+ 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
 ```no-highlight
 # systemctl daemon-reload
 # 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:
 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
 ```no-highlight
 # systemctl daemon-reload
 # 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:
 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:
 Finally, restart the gunicorn and RQ services:
 
 
 ```no-highlight
 ```no-highlight
-# sudo systemctl restart netbox
-# sudo systemctl restart netbox-rq
+# sudo systemctl restart netbox netbox-rq
 ```
 ```
 
 
 !!! note
 !!! note