mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-09 21:14:02 +00:00
FS-8369 Debian8/CentOS7 systemd installer additions
After builing Freeswitch this makes actually run it easy by offering an installer script. * Changes to configure.ac to detect Debian8/CentOS 7 and create installer script * Changes to build/Makefile.am to display the option * Added build/startup directory with templates and other files * Deleted outdated build/freeswitch.service and tmpfiles.conf * Unit file based on the latest systemd service file FS-8194 * Won't interfere with other platforms (afaik) * Supports all bindir directory prefixes ./configure can have * Detects if Debian8/CentOS7 use systemd * Can be used with a user with sudo permissions
This commit is contained in:
+4
-3
@@ -83,7 +83,7 @@ default_certsdir="$prefix/certs"
|
||||
default_fontsdir="$prefix/fonts"
|
||||
default_imagesdir="$prefix/images"
|
||||
|
||||
bindir="$exec_prefix/bin"
|
||||
eval bindir_expanded="${bindir}"
|
||||
|
||||
if test "${enable_fhs}" = "yes"; then
|
||||
eval full_datadir="${datadir}/freeswitch"
|
||||
@@ -789,8 +789,9 @@ case "$host" in
|
||||
AC_SUBST(DISTRO)
|
||||
AC_SUBST(rundir)
|
||||
AC_SUBST(environmentfilelocation)
|
||||
AC_CONFIG_FILES([init/install_systemd.sh], [chmod +x init/install_systemd.sh])
|
||||
AC_CONFIG_FILES([init/freeswitch.service])
|
||||
AC_SUBST(bindir_expanded)
|
||||
AC_CONFIG_FILES([build/startup/install_systemd.sh], [chmod +x build/startup/install_systemd.sh])
|
||||
AC_CONFIG_FILES([build/startup/freeswitch.service])
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user