devuan: update and unify sysvinit setup
there is no sysvinit package available from freeswitch, usethe same init and defaults file for package and source install
This commit is contained in:
parent
edcfd2db47
commit
e7ea266441
|
|
@ -0,0 +1,2 @@
|
||||||
|
# /etc/default/freeswitch
|
||||||
|
DAEMON_OPTS="-nonat -scripts /var/www/fusionpbx/app/scripts/resources/scripts/"
|
||||||
|
|
@ -2,10 +2,10 @@
|
||||||
### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
|
### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: freeswitch
|
# Provides: freeswitch
|
||||||
# Required-Start: $network $remote_fs $local_fs
|
# Required-Start: $network $remote_fs $local_fs postgresql
|
||||||
# Required-Stop: $network $remote_fs $local_fs
|
# Required-Stop: $network $remote_fs $local_fs postgresql
|
||||||
# Should-Start: postgresql mysql memcached mongodb
|
# Should-Start: mysql memcached mongodb
|
||||||
# Should-Stop: postgresql mysql memcached mongodb
|
# Should-Stop: mysql memcached mongodb
|
||||||
# Default-Start: 2 3 4 5
|
# Default-Start: 2 3 4 5
|
||||||
# Default-Stop: 0 1 6
|
# Default-Stop: 0 1 6
|
||||||
# Short-Description: FreeSWITCH Softswitch
|
# Short-Description: FreeSWITCH Softswitch
|
||||||
|
|
@ -18,7 +18,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||||
DESC=freeswitch
|
DESC=freeswitch
|
||||||
NAME=freeswitch
|
NAME=freeswitch
|
||||||
DAEMON=/usr/bin/freeswitch
|
DAEMON=/usr/bin/freeswitch
|
||||||
USER=freeswitch
|
USER=www-data
|
||||||
DAEMON_ARGS="-u $USER -ncwait"
|
DAEMON_ARGS="-u $USER -ncwait"
|
||||||
CONFDIR=/etc/$NAME
|
CONFDIR=/etc/$NAME
|
||||||
RUNDIR=/var/run/$NAME
|
RUNDIR=/var/run/$NAME
|
||||||
|
|
@ -130,4 +130,4 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
update-rc.d freeswitch enable
|
cp "$(dirname $0)/freeswitch.init" /etc/init.d/freeswitch
|
||||||
#
|
cp "$(dirname $0)/etc.default.freeswitch" /etc/default/freeswitch
|
||||||
# If freeswitch is not restarted with the new config before finish.sh is run,
|
|
||||||
# upgrade_domains.php will not set the paths correctly on the default domain
|
/usr/sbin/update-rc.d freeswitch enable
|
||||||
#
|
/usr/sbin/service freeswitch restart
|
||||||
service freeswitch restart
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
cp "$(dirname $0)/source/freeswitch.init" /etc/init.d/freeswitch
|
cp "$(dirname $0)/freeswitch.init" /etc/init.d/freeswitch
|
||||||
cp "$(dirname $0)/source/etc.default.freeswitch" /etc/default/freeswitch
|
cp "$(dirname $0)/etc.default.freeswitch" /etc/default/freeswitch
|
||||||
update-rc.d freeswitch enable
|
|
||||||
service freeswitch restart
|
|
||||||
|
|
||||||
echo "Please configure the sysvinit start up script from the source dir, test, and contribute code. Thank you."
|
/usr/sbin/update-rc.d freeswitch enable
|
||||||
|
/usr/sbin/service freeswitch restart
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
# /etc/default/freeswitch
|
|
||||||
FS_USER="www-data"
|
|
||||||
FS_GROUP="www-data"
|
|
||||||
DAEMON_OPTS="-nonat -ncwait -u www-data -g www-data -run /var/run/freeswitch"
|
|
||||||
|
|
||||||
# this is the packaged version. But since the source install does not work. I've not tested any of this.
|
|
||||||
# /etc/default/freeswitch
|
|
||||||
#DAEMON_OPTS="-nonat"
|
|
||||||
Loading…
Reference in New Issue