FS#24530 - [leafnode] add systemd support files
Attached to Project:
Community Packages
Opened by Damjan Georgievski (damjan) - Wednesday, 01 June 2011, 10:56 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 01 September 2011, 21:38 GMT
Opened by Damjan Georgievski (damjan) - Wednesday, 01 June 2011, 10:56 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 01 September 2011, 21:38 GMT
|
Details
Can you please add these 2 attached files to the leafnode
package.
They are to support SystemD for all those people that use it. The 2 files should go to the /lib/systemd/system/ directory |
This task depends upon
Closed by Sergej Pupykin (sergej)
Thursday, 01 September 2011, 21:38 GMT
Reason for closing: Won't implement
Thursday, 01 September 2011, 21:38 GMT
Reason for closing: Won't implement
1) Send these upstream. If denied...
2) Submit a pull request to me on github [1] for inclusion in the systemd-arch-units package.
I'd suggest fixing your socket first to not hardcode listening on 127.0.0.1 This completely precludes ipv6 support.
[1] https://github.com/falconindy/systemd-arch-units/
I'll try to see what upstream has to say about it.
BTW, the most common use case for leafnode is to be used on localhost (it's not a generic internet service) that's why it listens to 127.0.0.1. Do you think of a ipv6-only system would not have this?
Unfortunately, after digging into this, it looks like there's no any simple way to do this except with the use of IP_FREEBIND setting on the socket. So, you'll need to do something like:
Listen=127.0.0.1:119
Listen=::1:119
FreeBind=true
Which means that systemd will try to listen on these addresses before they come up (and will happily do so even if they never do come up).