Re: [sr-dev] [kamailio/kamailio] Add /var/run management to systemd script (#1464)
Closed #1464. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1464#event-1501265476___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Add /var/run management to systemd script (#1464)
@sergey-safarov thanks for prompt reaction and the patch! -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1464#issuecomment-369937426___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Add /var/run management to systemd script (#1464)
RPM files is recreated. I tested and now issue fixed. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1464#issuecomment-369935748___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Add /var/run management to systemd script (#1464)
[PR to master](https://github.com/kamailio/kamailio/pull/1469/files) is created Later will create cherry-pick to 5.1 branch In short time 5.1.2 rpm packages will be re created. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1464#issuecomment-369931705___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Add /var/run management to systemd script (#1464)
The issue was noticed post-installation. `/var/run/kamalio` was non-existent. As for `/var/run` of course I meant `/var/run/kamailio` management. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1464#issuecomment-369927667___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Add /var/run management to systemd script (#1464)
Hello @udf2457 This folder `/var/run/kamailio` is created using [kamailio.tmpfiles](https://github.com/kamailio/kamailio/blob/master/pkg/kamailio/obs/kamailio.tmpfiles) config and command [systemd-tmpfiles --create kamailio](https://github.com/kamailio/kamailio/blob/master/pkg/kamailio/obs/kamailio.spec#L1121) durring installation and recreated by OS when server is restarted. Could you clarify when you have issue. When rpm is installed or when server rebooted? About folder `/var/run`. As I understand really you not want recreate this. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1464#issuecomment-369927203___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Add /var/run management to systemd script (#1464)
https://salsa.debian.org/pkg-voip-team/kamailio/blob/master/debian/kamailio.service This is what I have in the Debian ``` # /var/run/kamailio in tmpfs RuntimeDirectory=kamailio RuntimeDirectoryMode=0750 ``` relevant info https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837678 -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1464#issuecomment-369907859___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Add /var/run management to systemd script (#1464)
@miconda Fair enough & thanks. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1464#issuecomment-369892619___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Add /var/run management to systemd script (#1464)
Well you were talking about systemd, that was clear, but there are also deb spec files and deb packages that include systemd options, it is not a single place and different people taking care of them. In this case, maybe @sergey-safarov can check and see what can be done. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1464#issuecomment-369892388___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Add /var/run management to systemd script (#1464)
Well I am talking about systemd ;-) http://download.opensuse.org/repositories/home:/kamailio:/v5.1.x-rpms/CentOS_7/ -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1464#issuecomment-369891468___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Add /var/run management to systemd script (#1464)
For which package specs? Debs, rpms? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1464#issuecomment-369890814___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Re: [sr-dev] [kamailio/kamailio] Add /var/run management to systemd script (#1464)
This should probably go into `/usr/lib/tmpfiles.d/kamailio.conf`. rtpproxy does this: ``` /cat /usr/lib/tmpfiles.d/rtpproxy.conf d /var/run/rtpproxy 0755 rtpproxy rtpproxy ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1464#issuecomment-369605401___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[sr-dev] [kamailio/kamailio] Add /var/run management to systemd script (#1464)
Hi, Would be nice if you could add `/var/run` management to the systemd script provided with the repo install. You know, something along the lines of: ``` ExecStartPre=-/usr/bin/mkdir /var/run/kamailio ExecStartPre=/usr/bin/chown -R kamailio:daemon /var/run/kamailio/ ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1464___ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev