mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
install lp-autoanswer service
This commit is contained in:
parent
a891e599b6
commit
7ffd7a93c8
3 changed files with 17 additions and 0 deletions
|
|
@ -51,3 +51,7 @@ bc_generate_rpm_specfile("rpm/liblinphone.spec.cmake" "${PROJECT_SOURCE_DIR}/lib
|
|||
|
||||
include(CPack)
|
||||
|
||||
|
||||
install(FILES rpm/lp-autoanswer.service DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system)
|
||||
install(FILES rpm/lp-autoanswer.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/etc/sysconfig
|
||||
RENAME lp-autoanswer)
|
||||
|
|
|
|||
2
build/rpm/lp-autoanswer.conf
Normal file
2
build/rpm/lp-autoanswer.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
OPTIONS=--verbose --listening-uri "sip:toto@localhost:5090"
|
||||
|
||||
11
build/rpm/lp-autoanswer.service
Normal file
11
build/rpm/lp-autoanswer.service
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Linphone autoanswer service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
EnvironmentFile=/etc/sysconfig/lp-autoanswer
|
||||
ExecStart=/usr/bin/lp-auto-answer $OPTIONS
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Reference in a new issue