Bug#950694: crtmpserver: missing-systemd-service-for-init.d-script

Andreas Henriksson andreas at fatal.se
Tue Feb 4 21:16:56 GMT 2020


Source: crtmpserver
Version: 1.0~dfsg-5.5
Severity: normal

Dear Maintainer,

Please consider adding a native systemd service masking the already
shipped init script (fixes lintian tag[1] in subject).

I've attached my own attempt at writing a service file, based off
looking at what the init script does. Note that it is completely
untested (as I don't use crtmpserver myself).

Please also get rid of the homebrew enable/disable service[2].

Additional improvements eg. using security hardening[3] could also be
added.

Regards,
Andreas Henriksson


[1]: https://lintian.debian.org/tags/missing-systemd-service-for-init.d-script.html
[2]: https://lintian.debian.org/tags/init.d-script-should-always-start-service.html
[3]: https://lintian.debian.org/tags/systemd-service-file-missing-hardening-features.html
-------------- next part --------------
[Unit]
Description=C++ RTMP/RTSP streaming server
After=network.target

[Service]
Type=forking
PIDFile=/run/crtmpserver.pid
Environment=DAEMON_ARGS=--daemon
Environment=DAEMON_CONF=/etc/crtmpserver/crtmpserver.lua
EnvironmentFile=-/etc/default/crtmpserver
ExecStart=/usr/sbin/crtmpserver --pid /run/crtmpserver.pid $DAEMON_ARGS $DAEMON_CONF
#User=root
#Group=root

[Install]
WantedBy=multi-user.target


More information about the pkg-multimedia-maintainers mailing list