Skip to content

Commit bd7b502

Browse files
committed
Created more systemctl scripts & update README.md
1 parent 6448eff commit bd7b502

File tree

10 files changed

+26
-4
lines changed

10 files changed

+26
-4
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,22 @@
2929
## Administrative Commands
3030

3131
Starting the Server:
32+
sudo systemctl start nginx
3233
sudo service nginx start
3334

3435
Stopping the Server:
36+
sudo systemctl stop nginx
3537
sudo service nginx stop
3638

3739
Restarting the Server:
40+
sudo systemctl restart nginx
3841
sudo service nginx restart
3942

43+
Reloading the Server:
44+
sudo systemctl reload nginx
45+
4046
Checking the Server Status:
47+
sudo systemctl status nginx
4148
sudo service nginx status
4249

4350
Disable the Server at Boot-Up:

scripts/reload.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
systemctl reload nginx

scripts/restart.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
service nginx restart
3+
systemctl restart nginx

scripts/restart2.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
service nginx restart

scripts/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
service nginx start
3+
systemctl start nginx

scripts/start2.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
service nginx start

scripts/status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
service nginx status
3+
systemctl status nginx

scripts/status2.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
service nginx status

scripts/stop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
service nginx stop
3+
systemctl stop nginx

scripts/stop2.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
service nginx stop

0 commit comments

Comments
 (0)