prototype-cjdns-pi icon indicating copy to clipboard operation
prototype-cjdns-pi copied to clipboard

Services Dependencies

Open darkdrgn2k opened this issue 6 years ago • 3 comments

Break service hacks for before and after into their own services

After=/Before= can be used not to create Dependencies but still set order

Some places to fix this

  • IPFS Swarm
  • IPTunnel cjdns & yggdrasill

darkdrgn2k avatar Mar 04 '19 22:03 darkdrgn2k

Before/After dont work on servivce restarts

look into BIND instead

Drop-in module can also be used

See example https://github.com/tomeshnet/prototype-cjdns-pi/blob/develop/scripts/yggdrasil-iptunnel/install#L11-L12

Yggdrasil Service - #316

darkdrgn2k avatar Mar 09 '19 00:03 darkdrgn2k

Can you elaborate on what you mean here?

makew0rld avatar Apr 27 '19 18:04 makew0rld

question is how to create a seperat deb for (example) cjdns and iptunnel

currently iptunnel modifies cjdns service file but that's invasive

if you create a separate service and you use after= or before= sets the order of which service starts when

for example start cjdns start cjdns iptunnel

however when cjdns is restarted cjdns iptu do won't restart

using bind could be used instead. that should marry two services.togetber

when cjdns stops cjdns iptunnel should stop

I been looking I to dropin where you change an existing service by adding a separate file into a folder

this would have the same.effect as what is currently being done without the invasive practices

darkdrgn2k avatar Jul 27 '19 00:07 darkdrgn2k