Skip to content

systemd hard dependency #23

Open
Open

Description

Thanks for making zerotier-gui!
This hard depends on systemd because it uses systemctl to check if zerotier is running.
what about running zerotier-cli instead?

Not running

$ zerotier-cli listnetworks
Error connecting to the ZeroTier service: connection failed

Please check that the service is running and that TCP port 9993 can be contacted via 127.0.0.1.

Running

$ zerotier-cli listnetworks
200 listnetworks <nwid> <name> <mac> <status> <type> <dev> <ZT assigned ips>
200 listnetworks xxxxxxxxxxxxx xxxxxx xx:xx:xx:xx:xx:xx OK PRIVATE xxxxxxxxxx xxxx:xxxx:xx:xxxx:xxxx::x/xx,xxx.xxx.xxx.xxx/xx

Maybe checking listened ports with netstat? detecting interface with ip addr? Abstract the check for multiple init systems?

Activity

  1. tralph3 commented on Jun 2, 2023

    @tralph3
    Owner

    Hi. I'm in the middle of a rewrite that addresses this problem. It still would need SystemD to handle the ZeroTier service tho.

  2. tralph3 commented on Jun 3, 2023

    @tralph3
    Owner

    I don't have much experience with other init systems, but I wouldn't mind supporting them if it's not a hard task. Does ZeroTier work out of the box with other init systems? Or do you need to write the service file yourself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions