yandrey писал(а):рекомендации - делегировать такие задачи кому нибудь более знающему, кто в любой непонятной ситуации не будет перезапускать весь сервер
Вангую: нету таких у ТС.
Если это freePBX или Elastix -
amportal stop | start | restart
в новых версиях (не ваш случай)
fwconsole
Код: Выделить всё
fwconsole -h
______ _____ ______ __
| ____| | __ \| _ \ \ / /
| |__ _ __ ___ ___| |__) | |_) \ V /
| __| '__/ _ \/ _ \ ___/| _ < > <
| | | | | __/ __/ | | |_) / . \
|_| |_| \___|\___|_| |____/_/ \_\
Usage:
help [--xml] [--format="..."] [--raw] [command_name]
Arguments:
command The command to execute
command_name The command name (default: "help")
Options:
--xml To output help as XML
--format To output help in other formats (default: "txt")
--raw To output raw command help
--help (-h) Display this help message
--quiet (-q) Do not output any message
--verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
--version (-V) Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
--no-interaction (-n) Do not ask any interactive question
Help:
The help command displays help for a given command:
php /usr/sbin/fwconsole help list
You can also output the help in other formats by using the --format option:
php /usr/sbin/fwconsole help --format=xml list
Available commands:
_completion BASH completion hook.
bi This command is used to import extensions and dids
bulkimport This command is used to import extensions and dids
chown Change ownership of files
context Shows the specified context from the dialplan
cx Shows the specified context from the dialplan
dbug Stream files for debugging
debug Stream files for debugging
doctrine Run a doctrine commands
externalip Get External IP
extip Get External IP
genunlockkey Return key to unlock session remotely
help Displays help for a command
list Lists commands
m Run a mysql Query:
ma Module Administration
moduleadmin Module Administration
motd Prints MOTD
mysql Run a mysql Query:
notification Manage notifications
r Reload Configs
reload Reload Configs
restart Start Asterisk and run other needed FreePBX commands
session Manage Session
set View and update settings
setting View and update settings
sounds Sound Language Prompts
start Start Asterisk and run other needed FreePBX commands
stop Stop Asterisk and run other needed FreePBX commands
trunks Enable and disable trunks from the command line
unlock Unlock Session
userman User Manager
util Common utilities