Guus Sliepen
2015-Sep-24 20:30 UTC
tinc initialization (in both Red Hat and Debian families)
On Thu, Sep 24, 2015 at 05:45:36PM +0200, Guus Sliepen wrote:> On Thu, Sep 24, 2015 at 05:51:30PM +0300, R?zvan Sandu wrote: > > > IMHO, we need: > > > > 1. A proper tinc.service file, included by default (prepackaged) in the > > stock .deb and .rpm packages in Fedora, Debian, Ubuntu, CentOS, etc. > > > > By "proper" I mean it will start tinc at the correct time during system's > > initialization, have proper permissions, etc.I had already experimented with systemd service files before, I just added them to the 1.1 branch. You can see them here: http://tinc-vpn.org/git/browse?p=tinc;a=tree;f=systemd;hb=refs/heads/1.1 There are two service files; tinc at .service and tinc.service. The first is a template that allows you to enable and start/stop individual instances of tinc, like in: systemctl enable tinc at foo systemctl start tinc at foo This starts tincd -n foo. The second service file is itself a dummy, but all template instances are slaved to this one (using PartOf), so you can start/stop all tinc daemons in one go, like: systemctl start tinc Let me know if these work for you or not. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20150924/023b4580/attachment.sig>
Would it not make more sense to have this on packagers responsiblity instead like you were saying adding it into the upstream repo. Maybe have a secondary repo that people can contribute to for distribution specific files and install scripts. On 24 September 2015 at 21:30, Guus Sliepen <guus at tinc-vpn.org> wrote:> On Thu, Sep 24, 2015 at 05:45:36PM +0200, Guus Sliepen wrote: > > > On Thu, Sep 24, 2015 at 05:51:30PM +0300, R?zvan Sandu wrote: > > > > > IMHO, we need: > > > > > > 1. A proper tinc.service file, included by default (prepackaged) in the > > > stock .deb and .rpm packages in Fedora, Debian, Ubuntu, CentOS, etc. > > > > > > By "proper" I mean it will start tinc at the correct time during > system's > > > initialization, have proper permissions, etc. > > I had already experimented with systemd service files before, I just > added them to the 1.1 branch. You can see them here: > > http://tinc-vpn.org/git/browse?p=tinc;a=tree;f=systemd;hb=refs/heads/1.1 > > There are two service files; tinc at .service > and tinc.service. The first is a template that allows you to enable and > start/stop individual instances of tinc, like in: > > systemctl enable tinc at foo > systemctl start tinc at foo > > This starts tincd -n foo. The second service file is itself a dummy, but > all template instances are slaved to this one (using PartOf), so you can > start/stop all tinc daemons in one go, like: > > systemctl start tinc > > Let me know if these work for you or not. > > -- > Met vriendelijke groet / with kind regards, > Guus Sliepen <guus at tinc-vpn.org> > > _______________________________________________ > tinc mailing list > tinc at tinc-vpn.org > http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20150924/9d291d2c/attachment-0001.html>
Guus Sliepen
2015-Sep-25 07:27 UTC
tinc initialization (in both Red Hat and Debian families)
On Thu, Sep 24, 2015 at 10:50:14PM +0100, Martin wrote:> Would it not make more sense to have this on packagers responsiblity > instead like you were saying adding it into the upstream repo.Systemd at least tries to ensure you can write service files that should work the same on all distributions. So they are not distribution specific.> Maybe have a secondary repo that people can contribute to for distribution > specific files and install scripts.I would rather have people contribute those specific files and scripts directly to the distribution they are intended for. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20150925/15f4e3fb/attachment.sig>
Maybe Matching Threads
- tinc initialization (in both Red Hat and Debian families)
- tinc initialization (in both Red Hat and Debian families)
- tinc initialization (in both Red Hat and Debian families)
- tinc initialization (in both Red Hat and Debian families)
- tinc initialization (in both Red Hat and Debian families)