FDH2 / UxPlay

AirPlay Unix mirroring server
GNU General Public License v3.0
1.34k stars 72 forks source link

A daemon for systemd?可以将它做成守护程序在systemd的系统中使用吗? #226

Closed NeitherPortal closed 8 months ago

NeitherPortal commented 8 months ago

I think starting it as a daemon is better than type "uxplay" in the command line. This allows for better integration into desktop systems And can be developed embedded (e.g. projector casting, TV casting, etc.) You can use a configuration file like openvpn to put it in a specific folder and then start the service based on the configuration file. 我觉得把它当作守护程序启动要比在命令行里启动要好 这样可以更好地融合到桌面系统里 而且可以嵌入式开发(比如投影仪投屏,电视机投屏等) 可以像openvpn一样使用配置文件放入特定文件夹里然后根据配置文件启动服务

fduncanh commented 8 months ago

One issue: what to do with the terminal output?

(maybe just send it to /dev/null?)

If you can submit a PR with at least an initial working implementation of a daemon mode to see how it works that would be great

thiccaxe commented 8 months ago

Daemon services can still have logs, I believe you can view with journalctl

fduncanh commented 8 months ago

@thiccaxe

Daemon services can still have logs, I believe you can view with journalctl

true. probably would need to prevent debug output in a daemon mode.

fduncanh commented 8 months ago

@NeitherPortal closing as its not an issue, but keep us informed if you work on this.