add fetapd.service and some setup instructions
This commit is contained in:
parent
02fa43566e
commit
a05d547b1b
2 changed files with 48 additions and 3 deletions
38
README.md
38
README.md
|
@ -1,7 +1,6 @@
|
|||
# fetapi - FeTAp with a Raspberry Pi
|
||||
|
||||
```
|
||||
|
||||
,ooFeTApFeTApFeTA%=+-,.
|
||||
,+FeTAp+' `o,,
|
||||
,oFeTAp+ `,
|
||||
|
@ -23,12 +22,33 @@
|
|||
o:N H:a e, G
|
||||
t:a s:c c, ,x+x+'
|
||||
k:T:@:U:M:R:n; h, ,p+e+r+a+t/
|
||||
`@:n:M:E:'
|
||||
`@:n:M:E:' `T=i=s=c=h=A=p/
|
||||
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
Some of the following instructions must be executed with `root` privileges.
|
||||
|
||||
### Installing `fetapd`
|
||||
|
||||
1. Clone this repository (together with `pylinphone` as sub-module)
|
||||
|
||||
```
|
||||
cd /opt
|
||||
|
||||
git clone https://git.blinkenbunt.org/LUG-Saar/fetapi.git
|
||||
git submodule update
|
||||
```
|
||||
|
||||
2. Configure and enable `fetapd` as `systemd` service
|
||||
|
||||
```
|
||||
ln -sr fetapd.service /etc/systemd/system/
|
||||
systemctl daemon-reload
|
||||
systemctl enable fetapd
|
||||
```
|
||||
|
||||
### Installing `linphone-cli` on Raspbian
|
||||
|
||||
1. Install `debootstrap`
|
||||
|
@ -76,5 +96,17 @@
|
|||
ln -sr linphone-daemon.service /etc/systemd/system
|
||||
systemctl daemon-reload
|
||||
systemctl enable linphone-daemon
|
||||
systemctl start linphone-daemon
|
||||
```
|
||||
|
||||
## Configuring `fetapd`
|
||||
|
||||
:warning: TODO
|
||||
|
||||
## Starting `fetapd`
|
||||
|
||||
```
|
||||
systemctl start fetapd
|
||||
```
|
||||
|
||||
(or simply reboot your *FeTAp*)
|
||||
|
||||
|
|
13
fetapd.service
Normal file
13
fetapd.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=FeTAp Daemon
|
||||
Requires=linphone-daemon.service
|
||||
After=linphone-daemon.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/python3 /opt/fetapi/fetapd.py
|
||||
User=pi
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue