Merged revisions 46563 via svnmerge from
[asterisk/asterisk.git] / contrib / init.d / rc.gentoo.asterisk
1 #!/sbin/runscript
2
3 depend() {
4         need net logger
5 }
6
7 start() {
8         ebegin "Starting Asterisk"
9         /usr/sbin/asterisk
10         eend $? "Failed to start Asterisk"
11 }
12
13 stop() {
14         ebegin "Stopping Asterisk"
15         kill $(cat /var/run/asterisk.pid)
16         eend $? "Failed to stop Asterisk"
17 }