Commit 5d1e396b authored by François Grisez's avatar François Grisez

Remove flexisip.service

parent fbb98306
Pipeline #5956 passed with stages
in 38 minutes and 38 seconds
......@@ -73,7 +73,7 @@ Requires: %{pkg_prefix}liblinphone
%define ctest_name ctest
%endif
%global flexisip_services %(printf 'flexisip.service flexisip-proxy.service'; if [ @ENABLE_PRESENCE@ -eq 1 ]; then printf ' flexisip-presence.service'; fi; if [ @ENABLE_CONFERENCE@ -eq 1 ]; then printf ' flexisip-conference.service\n'; fi)
%global flexisip_services %(printf 'flexisip-proxy.service'; if [ @ENABLE_PRESENCE@ -eq 1 ]; then printf ' flexisip-presence.service'; fi; if [ @ENABLE_CONFERENCE@ -eq 1 ]; then printf ' flexisip-conference.service\n'; fi)
%description
Extensible SIP proxy with media capabilities. Designed for robustness and easy of use.
......@@ -134,8 +134,6 @@ mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/log/flexisip
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{_prefix}/log/flexisip
mkdir -p $RPM_BUILD_ROOT/lib/systemd/system
install -p -m 0644 scripts/flexisip.service $RPM_BUILD_ROOT/lib/systemd/system
install -p -m 0644 scripts/flexisip\@.service $RPM_BUILD_ROOT/lib/systemd/system
install -p -m 0644 scripts/flexisip-proxy.service $RPM_BUILD_ROOT/lib/systemd/system
install -p -m 0644 scripts/flexisip-proxy\@.service $RPM_BUILD_ROOT/lib/systemd/system
%if @ENABLE_PRESENCE@
......@@ -179,6 +177,9 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/flexisip/*.cc
%{_localstatedir}/*
/lib/systemd/system/flexisip-proxy.service
/lib/systemd/system/flexisip-proxy@.service
%if @ENABLE_PRESENCE@
/lib/systemd/system/flexisip-presence.service
/lib/systemd/system/flexisip-presence@.service
......@@ -192,11 +193,6 @@ rm -rf $RPM_BUILD_ROOT
%{_sysconfdir}/flexisip
%config(noreplace) %{_sysconfdir}/logrotate.d/flexisip-logrotate
/lib/systemd/system/flexisip.service
/lib/systemd/system/flexisip@.service
/lib/systemd/system/flexisip-proxy.service
/lib/systemd/system/flexisip-proxy@.service
%if @ENABLE_JWE_AUTH_PLUGIN@
%files jwe-auth-plugin
%defattr(-,root,root,-)
......
......@@ -33,8 +33,6 @@ endif()
#systemd
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/flexisip.service.in ${CMAKE_CURRENT_BINARY_DIR}/flexisip.service)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/flexisip@.service.in ${CMAKE_CURRENT_BINARY_DIR}/flexisip@.service)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/flexisip-proxy.service.in ${CMAKE_CURRENT_BINARY_DIR}/flexisip-proxy.service)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/flexisip-proxy@.service.in ${CMAKE_CURRENT_BINARY_DIR}/flexisip-proxy@.service)
......
[Unit]
Description=Flexisip server all service
Documentation=http://www.linphone.org/technical-corner/flexisip/overview
After=syslog.target network.service network.target redis.service mysqld.service
[Service]
Type=forking
ExecStart=@bindir@/flexisip --daemon --syslog
StandardOutput=null
StandardError=null
[Install]
WantedBy=multi-user.target
[Unit]
Description=Flexisip server all service - %i instance
Documentation=http://www.linphone.org/technical-corner/flexisip/overview
After=syslog.target network.service network.target redis.service mysqld.service
[Service]
Type=forking
ExecStart=/opt/belledonne-communications/bin/flexisip --daemon --syslog -c /etc/flexisip/%i.conf
StandardOutput=null
StandardError=null
[Install]
WantedBy=multi-user.target
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment