Closed mokeyish closed 1 year ago
What service manager would Android Termux use? I'm not familiar with that platform, and it isn't supported via this crate at the moment. These operating systems are currently supported:
I can add a default, native implementation for Android, but I wouldn't know what it would use.
I'm planning to use service-manager
to manager service for my software https://github.com/mokeyish/smartdns-rs.
It planned to support Android Termux.
Fix it first to avoid compilation errors?
@mokeyish so what service manager does Android Termux use? Systemd?
It looks like Android Termux uses runit
as the service manager, which isn't currently supported by this library. See #1 for the request to add support for sv
, which Android Termux also uses as described here and in this blog post.
Yes, it use runit
. I used sv
a long time ago, but currently, I forgot how to use it .
@chipsenkbeil BTW, Can qualifier
and organization
be optional? I want to use smartdns-rs
as service label directly.
@chipsenkbeil BTW, Can
qualifier
andorganization
be optional? I want to usesmartdns-rs
as service label directly.
Depending on the service manager, they may or may not be optional. Which service manager are you using? You can always put in an empty string or placeholder for them, but they may behave a little strangely.
No longer fails to compile thanks to #9.
https://github.com/chipsenkbeil/service-manager-rs/blob/59736e1b0b8c7c2af05441145575e5c459eb4542/src/kind.rs#L26