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:
Niek Vlessert
2015-10-30 19:11:32 +01:00
parent adc8f9a119
commit 757fa94239
6 changed files with 11 additions and 10 deletions
+4 -3
View File
@@ -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
;;
*)