mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/freeswitch Patch for initd and install scripts
This commit is contained in:
parent
09218f0553
commit
059f52fdd8
19
testing/freeswitch/freeswitch.initd
Normal file
19
testing/freeswitch/freeswitch.initd
Normal file
@ -0,0 +1,19 @@
|
||||
#!/sbin/runscript
|
||||
|
||||
NAME=freeswitch
|
||||
USER=freeswitch
|
||||
DAEMON=/usr/bin/freeswitch
|
||||
OPTIONS_START="-u $USER -g $GROUP -nc"
|
||||
OPTIONS_STOP="-stop"
|
||||
|
||||
start() {
|
||||
ebegin "Starting $NAME"
|
||||
$DAEMON $OPTIONS_START
|
||||
eend 0
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping $NAME"
|
||||
$DAEMON $OPTIONS_STOP
|
||||
eend 0
|
||||
}
|
||||
15
testing/freeswitch/freeswitch.install
Executable file
15
testing/freeswitch/freeswitch.install
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
pre_install)
|
||||
adduser -h /dev/null -s /bin/false -D freeswitch 2>/dev/null
|
||||
;;
|
||||
post_install)
|
||||
chown -R freeswitch:freeswitch /etc/freeswitch/
|
||||
;;
|
||||
post_deinstall)
|
||||
deluser freeswitch
|
||||
delgroup freeswitch
|
||||
;;
|
||||
esac
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user