[SR-Users] Kamailio 4.3 and Debian 8.2 systemctl
Grant Bagdasarian
gb at cm.nl
Wed Oct 21 10:20:22 CEST 2015
Hello,
I've just installed Kamailio 4.3 on Debian 8.2, but starting kamailio does not work since Debian requires systemctl to be setup.
I've tried the below config but it didn't work (https://github.com/kamailio/kamailio/issues/294#issuecomment-138590939)
usr/local/src/kamailio# systemctl status kamailio.service
â kamailio.service - Kamailio SIP Server
Loaded: loaded (/etc/systemd/system/kamailio.service; disabled)
Active: failed (Result: resources)
systemd[1]: [/etc/systemd/system/kamailio.service:14] Not an absolute path, ignoring: $PIDFILE
systemd[1]: Failed to load environment files: No such file or directory
systemd[1]: kamailio.service failed to run 'start' task: No such file or directory
systemd[1]: Failed to start Kamailio SIP Server.
systemd[1]: Unit kamailio.service entered failed state.
[Unit]
Description=Kamailio (OpenSER) - the Open Source SIP Server
After=syslog.target network.target
[Service]
Type=forking
Environment='PIDFILE=/var/run/kamailio/kamailio.pid'
Environment='CFGFILE=/etc/kamailio/kamailio.cfg'
Environment='SHM_MEMORY=64'
Environment='PKG_MEMORY=8'
Environment='USER=kamailio'
Environment='GROUP=kamailio'
EnvironmentFile=/etc/default/kamailio
PIDFile=$PIDFILE
# ExecStart requires a full absolute path
ExecStart=/usr/sbin/kamailio -P $PIDFILE -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP
ExecStopPost=/bin/rm -f $PIDFILE
Restart=on-abort
[Install]
WantedBy=multi-user.target
Does anyone have a working kamailio.service file?
Regards,
Grant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151021/fe42de50/attachment.html>
More information about the sr-users
mailing list