Skip to content

Jellyfin-Server Debian package helper scripts assume systemd being used #103

@PoC-dev

Description

@PoC-dev

After upgrading jellyfin from the Debian repos on https://repo.jellyfin.org/debian yesterday, I found that the jellyfin servers weren't (re)started. I presume this is because the Debian scripts assume Systemd to be used.

/var/lib/dpkg/info/jellyfin-server.postinst:    systemctl --system daemon-reload >/dev/null || true
/var/lib/dpkg/info/jellyfin-server.postrm:  systemctl --system daemon-reload >/dev/null || true
/var/lib/dpkg/info/jellyfin-server.postrm:	systemctl --system daemon-reload >/dev/null || true
/var/lib/dpkg/info/jellyfin-server.preinst:  systemctl --system daemon-reload >/dev/null || true

Because output is redirected to /dev/null there is no indication of failure.

Correct solution would be to use service instead of a direct call to systemctl. The manpage states:

service runs a System V init script or systemd unit […]

Note: I've provided a SysV-rc script myself. Feel free to ask if interested for incorporation into the Debian package. I refrained from touching the scripts, because they'll be overwritten with the next update anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions