Bug#837678: postinst: $HOME created on tmpfs

Daniel Pocock daniel at pocock.pro
Tue Sep 13 12:37:42 UTC 2016


Package: kamailio
Severity: important
Version: 4.4.2-3


The postinst script creates the home directory /var/run/kamailio

/var/run may be a tmpfs and the directory would disappear after reboot

This is the code in the script now:

case "$1" in
    configure)
        adduser --quiet --system --group --disabled-password \
                --shell /bin/false --gecos "Kamailio SIP Server" \
                --home /var/run/kamailio kamailio || true


The systemd unit file kamailio.service also uses /var/run/kamailio for
PIDFile

Maybe the unit file needs:

RuntimeDirectory=kamailio
RuntimeDirectoryMode=0750

and something equivalent in the init script.


I did something like this for the homer-api package (which also runs a
kamailio instance) and it creates the directory successfully.



More information about the Pkg-voip-maintainers mailing list