Commit Graph

18 Commits

Author SHA1 Message Date
c9ba61be3b Use core::future::pending instead of tokio's ^C 2020-12-06 16:49:38 +01:00
7495c57013 Implement From<ServiceError> for dbus::MethodErr 2020-11-05 19:11:00 +01:00
2cab09d30b Downgrade tokio because some crates aren't ready
Problematic crates include
 - actix-codec > ... > actix-web
 - actix-rt > ... > actix-web
 - async-minecraft-ping
 - dbus-tokio
 - h2 > ... > actix-web
 - trust-dns-proto > ... > actix-web
 - trust-dns-resolver > ... > actix-web
2020-11-04 00:09:02 +01:00
52d34e42a1 Update iface_rt behaviour to fix tokio update 2020-11-03 17:43:50 +01:00
cc4d0f08a4 Update files so that they use the new dbus-tree 2020-09-20 23:29:03 +02:00
5543cafc2c Change imports to conform with updated dependencies 2020-09-20 22:43:43 +02:00
f99ee75f98 Fix #1 by using enums instead of traits
It very much reduces code and complexity.
2020-09-17 22:14:20 +02:00
ba5e5ece69 Add MinecraftService and change Interface trait
I found out I did a design mistake (#2)
2020-09-17 17:27:49 +02:00
e25cfe94d2 Add MinecraftService
...and change some other trait impl bits, too
2020-09-14 20:15:22 +02:00
4bcb78164d Add new error variants 2020-09-14 20:14:15 +02:00
bb9bfd3b62 Change functions to return an optional JoinHandle 2020-09-14 20:13:52 +02:00
f0066c8e76 Complete moving from dbus-crossroads to dbus::tree 2020-09-13 14:49:59 +02:00
a4bf221c92 Remove dbus-crossroads and code using it
That library didn't do it for me.
Adding async methods was a pain in the a** with lifetime and type bounds
confusing the heck out of me.
So I tried it with `dbus::tree` (in the next commits). It still was a
bit of work to get it working, but at least it **is** working.
2020-09-13 14:48:35 +02:00
5aaf57c9bb Add comment/code documentation 2020-08-30 19:41:13 +02:00
e6ffb3f3e1 Print message when stopping the daemon (SIGTERM)
systemd sends SIGTERM when stopping a service. When running in a tty,
CTRL + C (SIGINT) currently won't print a shutdown message.
2020-08-30 16:37:45 +02:00
bb51ff77b1 Connect to system bus instead of session bus 2020-08-30 16:33:29 +02:00
06a7aea979 Change some output generating lines 2020-08-30 16:32:09 +02:00
a58d540126 Add basic logging and dbus functionality to sfsmcd 2020-08-23 01:05:22 +02:00