[sr-dev] [kamailio/kamailio] kamailio.service: fixed RunTimeDir Permission Error (#1754)

sergey-safarov notifications at github.com
Wed Dec 5 22:29:59 CET 2018


sergey-safarov commented on this pull request.



>  Environment='CFGFILE=/etc/kamailio/kamailio.cfg'
 Environment='SHM_MEMORY=64'
 Environment='PKG_MEMORY=4'
+RuntimeDirectory=kamailio
+RuntimeDirectoryMode=0755
+PIDFile=/var/run/kamailio/kamailio.pid

Also look [`https://www.freedesktop.org/software/systemd/man/systemd.service.html`](https://www.freedesktop.org/software/systemd/man/systemd.service.html).
```
If set to forking, it is expected that the process configured with ExecStart= will call fork() as part of its start-up. The parent process is expected to exit when start-up is complete and all communication channels are set up. The child continues to run as the main daemon process. This is the behavior of traditional UNIX daemons. If this setting is used, it is recommended to also use the PIDFile= option, so that systemd can identify the main process of the daemon. systemd will proceed with starting follow-up units as soon as the parent process exits.
```
`PIDFile` is used in case process started as working process. Now Kamailio is starts as `simple` process with `-DD` options. Main process is still alive and not need to use `PIDFile`.

-- 
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/pull/1754#discussion_r239244575
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20181205/39cf3c06/attachment.html>


More information about the sr-dev mailing list