[OpenSIPS-Users] Restart=always and After=mysql.service
Răzvan Crainea
razvan at opensips.org
Tue Sep 8 09:05:24 CEST 2015
Hi, Nabeel, Aron!
Steve Frécinaux from BeIP added support for Jessie and systemd[1], but
it is only available on the master branch. However, you can easily use
it for other branches too.
[1]
https://github.com/OpenSIPS/opensips/blob/master/packaging/debian/opensips.service
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 09/08/2015 01:00 AM, Podrigal, Aron wrote:
> Sorry, after a quick look, I see daemon-reload only scans for scripts
> and does not generate .service files. However, systemd knows how to
> start and stop LSB type init scripts. I've been using 1.11.x branch so
> there wasn't a opensips.service there. There is a service file here
> https://github.com/OpenSIPS/opensips/blob/master/packaging/debian/opensips.service
>
> On Mon, Sep 7, 2015 at 5:45 PM, Podrigal, Aron
> <aronp at guaranteedplus.com <mailto:aronp at guaranteedplus.com>> wrote:
>
> Opensips still uses sysv LSB init scripts. So there won't be any
> .service installed automatically. However I think you can
> generate a .service file for opensips after installing the sysv
> init script by issuing the following command.
>
> systemctl daemon-reload
>
> On Sep 7, 2015 2:15 PM, "Nabeel" <nabeelshikder at gmail.com
> <mailto:nabeelshikder at gmail.com>> wrote:
>
> Hi,
>
> Most of my services have a .service file located at
> /usr/lib/systemd/system where I can set 'Restart=always' or
> 'After=mysql.service' / 'After=mariadb.service' to make sure
> the server starts at the appropriate times.
>
> However, there is no such .service file for OpenSIPS. Please
> advise how to create this .service file for OpenSIPS. I heard
> about 'respawn' but don't know how exactly to use this and
> would prefer to use a .service file like other services.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> --
> Aron Podrigal
> -
> '1000001', '1110010', '1101111', '1101110' '1010000', '1101111',
> '1100100', '1110010', '1101001', '1100111', '1100001', '1101100'
>
> P: '2b', '31', '33', '34', '37', '34', '35', '38', '36', '30', '39', '39'
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150908/a401c486/attachment.htm>
More information about the Users
mailing list