mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 03:18:30 +00:00
Added first go at a Gentoo rc-script
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1960 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
17
contrib/init.d/rc.gentoo.asterisk
Executable file
17
contrib/init.d/rc.gentoo.asterisk
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user