[SR-Users] how to set kamctl to find ctl anf fifo that are not at /var/run
Daniel-Constantin Mierla
miconda at gmail.com
Wed Jun 1 08:51:23 CEST 2016
Hello,
I created a wiki page to keep these systemd unit settings -- may be
easier to find for someone looking for them:
* https://www.kamailio.org/wiki/tutorials/kamailio-startup-scripts
Anyone feel free to add there more content and tips for startup scripts
on various systems.
Cheers,
Daniel
On 31/05/16 17:22, Anthony Messina wrote:
> ## Content of /etc/systemd/kamailio.service
> [Unit]
> Description=Kamailio SIP Server
> Documentation=man:kamailio(8) http://www.kamailio.org/
> After=syslog.target network-online.target
>
> [Service]
> Type=forking
> User=kamailio
> Environment=SHM_SIZE=64
> Environment=PKG_SIZE=8
> ExecStartPre=/usr/sbin/kamailio -c
> ExecStart=/usr/sbin/kamailio -m $SHM_SIZE -M $PKG_SIZE \
> -P /run/kamailio/kamailio.pid
> ExecStopPost=/usr/bin/rm -f /run/kamailio/kamailio.pid
> PIDFile=/run/kamailio/kamailio.pid
> Restart=on-failure
> RestartSec=30
>
> [Install]
> WantedBy=multi-user.target
>
>
> ## Content of /etc/tmpfiles.d/kamailio.conf
> d /run/kamailio 0750 kamailio kamailio
--
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160601/b9612916/attachment.html>
More information about the sr-users
mailing list