forked from pttlink/Asterisk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastdn.sh
executable file
·28 lines (22 loc) · 861 Bytes
/
astdn.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
set -o errexit
# N4IRS 07/26/2017
#################################################
# #
# #
# #
#################################################
if [ -e /var/run/asterisk.ctl ]
then
echo "Stopping Asterisk..."
echo "systemctl stop asterisk.service"
systemctl stop asterisk.service
else
echo "Asterisk is not running!"
fi
# asterisk service status: systemctl status asterisk.service
# asterisk start service: systemctl start asterisk.service
# asterisk restart service: systemctl restart asterisk.service
# asterisk stop service: systemctl stop asterisk.service
# asterisk disable service: systemctl disable asterisk.service
# asterisk enable service: systemctl enable asterisk.service