From a05d547b1ba066a8e75f55f60bb49dc3d92fe36e Mon Sep 17 00:00:00 2001 From: Fr3deric Date: Mon, 28 Dec 2020 20:08:35 +0000 Subject: [PATCH] add fetapd.service and some setup instructions --- README.md | 38 +++++++++++++++++++++++++++++++++++--- fetapd.service | 13 +++++++++++++ 2 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 fetapd.service diff --git a/README.md b/README.md index 801f7e9..9d3a6f3 100644 --- a/README.md +++ b/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*) + diff --git a/fetapd.service b/fetapd.service new file mode 100644 index 0000000..bf686bc --- /dev/null +++ b/fetapd.service @@ -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