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
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to