all files under /var/run/ (a symbolic link to /run) must be created from scratch on server reboot.
Could you make a test:

1. systemctl disable kamailio
2. reboot
3. ls -ld /var/run/kamailio
4. ls -l /var/run/kamailio
5. systemctl enable --now kamailio
6. ls -ld /var/run/kamailio
7. ls -l /var/run/kamailio

And paste here output of these commands.

This is without the problematic cfg parameter:

root@kam01:/home/henning# systemctl disable kamailio
Synchronizing state of kamailio.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable kamailio
Removed /etc/systemd/system/multi-user.target.wants/kamailio.service.
reboot

root@kam01:/home/henning# ls -ld /var/run/kamailio
ls: cannot access '/var/run/kamailio': No such file or directory

root@kam01:/home/henning# ls -l /var/run/kamailio
ls: cannot access '/var/run/kamailio': No such file or directory

root@kam01:/home/henning# systemctl enable --now kamailio
Synchronizing state of kamailio.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable kamailio
Created symlink /etc/systemd/system/multi-user.target.wants/kamailio.service → /lib/systemd/system/kamailio.service.

root@kam01:/home/henning# ls -ld /var/run/kamailio
drwxr-x--- 2 kamailio kamailio 120 Jul 5 10:46 /var/run/kamailio

root@kam01:/home/henning# ls -l /var/run/kamailio
total 4
srw------- 1 kamailio kamailio 0 Jul 5 10:46 kamailio_ctl
-rw-r--r-- 1 kamailio kamailio 5 Jul 5 10:46 kamailio.pid
prw-rw---- 1 kamailio kamailio 0 Jul 5 10:46 kamailio_rpc.fifo
srw-rw---- 1 kamailio kamailio 0 Jul 5 10:46 kamailio_rpc.sock


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.