Amportal restart vs service asterisk restart

What’s the difference between “amportal restart” and “service asterisk restart” (or “/etc/init.d/asterisk restart”)?

(I asked on the Asterisk forum and they directed me here, said amportal was unique to FreePBX.)

amportal restarts Asterisk and makes sure it runs as the Asterisk user along with restarting any FreePBX related services like FOP.

amportal restart

Please wait…

STOPPING ASTERISK
Waiting for Asterisk to Stop Gracefully…

Asterisk Stopped

STOPPING WANROUTER FOR SANGOMA CARDS

Router is already stopped !

STOPPING DAHDI FOR DIGIUM CARDS
Unloading DAHDI hardware modules: done
Dahdi Stopped

STARTING WANROUTER FOR SANGOMA CARDS
No Wanrouter Cards Installed

STARTING DAHDI FOR DIGIUM CARDS
Loading DAHDI hardware modules:
wct4xxp: [ OK ]
opvxd115: [ OK ]
wcte12xp: [ OK ]
wcte13xp: [ OK ]
wct1xxp: [ OK ]
wcte11xp: [ OK ]
tor3e: [ OK ]
r1t1: [ OK ]
rxt1: [ OK ]
wctdm24xxp: [ OK ]
wcfxo: [ OK ]
wctdm: [ OK ]
opvxa24xx: [ OK ]
opvxa1200: [ OK ]
rcbfx: [ OK ]
zaphfc: [ OK ]
wcb4xxp: [ OK ]
wctc4xxp: [ OK ]
xpp_usb: [ OK ]

Running dahdi_cfg: [ OK ]
Dahdi Started

STOPPING FOP SERVER
SETTING FILE PERMISSIONS
Permissions OK
Removing any dangling symlinks
Dangling symlinks removed

STARTING ASTERISK
Asterisk Started

STARTING FOP SERVER
/etc/amportal.conf: line 708: reg: command not found [BRAND_FREEPBX_ALT_FOOT=FreePBX®]
/etc/amportal.conf: line 828: n63o84: command not found
FOP Server Started[ARI_ADMIN_PASSWORD=xxxxxxxxxxxxxxxxxxx]