Add Clapper deamon subprocess

Daemon is responsible for starting and later watching over spawned "broadwayd" and "remote" app needed for remote playback control. We cannot use systemd n Flatpak, so we make do with running optional background subprocesses.
This commit is contained in:
Rafostar
2020-12-16 19:54:30 +01:00
parent 254d1aa9db
commit 84762de76a
6 changed files with 104 additions and 30 deletions

View File

@@ -296,13 +296,14 @@ class ClapperPlayerBase extends GstPlayer.Player
if(!this.webapp)
this.webapp = new WebApp();
this.webapp.startRemoteApp();
this.webapp.startDaemonApp();
}
else
this.webapp.stopRemoteApp();
this.webapp.stopDaemonApp();
}
else if(this.webserver) {
/* remote app will close too when connection is lost */
/* remote app will close when connection is lost
* which will cause the daemon to close too */
this.webserver.stopListening();
}
break;