git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1960 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 lines
256 B
Text
Executable file
18 lines
256 B
Text
Executable file
#!/sbin/runscript
|
|
|
|
depend() {
|
|
need net logger
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting Asterisk"
|
|
/usr/sbin/asterisk
|
|
eend $? "Failed to start Asterisk"
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping Asterisk"
|
|
kill $(cat /var/run/asterisk.pid)
|
|
eend $? "Failed to stop Asterisk"
|
|
}
|