sipcapture / homer-installer

HOMER Install Scripts and Install Packages
http://sipcapture.org
37 stars 46 forks source link

Kamailio starts up before mysql service causing service to fail at bootup #28

Closed dig12345 closed 7 years ago

dig12345 commented 7 years ago

need to add a systemd unit file to add dependency on mysql service. stock kamailio does not require this: mkdir /etc/systemd/system/kamailio.service.d/ nano /etc/systemd/system/kamailio.service.d/kamailio.conf

[Unit] After= mysql.service

00Asgaroth00 commented 7 years ago

Hi, I'm guessing the systemd configuration file should really be living with the rest of the service definitions in /lib/systemd/system/kamailio.service.d/. I'll take a look at this.

BTW, which distro you running this on? Is it Debian 8 or CentOS 7?

dig12345 commented 7 years ago

No. If you add it to the regular location it will get overwitten by any package updates to kamailio. I've been down that road before. This is on Debian 8. I suspect this issue plagues many new users and they just give up. It strikes only after the first reboot and is likely inconsistent based on startup times.

00Asgaroth00 commented 7 years ago

This should be addressed now.