Commit Graph

8 Commits (master)

Author SHA1 Message Date
Luka Vandervelden d3fe317665 Grooming, `service reload`, `Service#reload`.
`reload-command:` can be defined in service definition `.spec` files.
2019-11-09 21:52:43 +01:00
Philippe PITTOLI e0e81d8581 Services can now be "Non Runnable". 2019-11-08 01:08:57 +01:00
Luka Vandervelden 7fdccfa1b2 `service status --verbose` 2019-10-29 13:08:58 +01:00
Luka Vandervelden e4741daeb3 service status: full id used in lists at all times. 2019-10-25 12:36:30 +02:00
Luka Vandervelden 925a8ee0fd `service status`: improved UI 2019-10-24 12:55:30 +02:00
Luka Vandervelden 75d5fd7874 `status` can take several parameters or none. 2019-10-23 19:38:08 +02:00
Luka Vandervelden 5dd27e1101 Priviledges management.
- `service status` does not require priviledges anymore… if the
    `status` binary is owned by root and has the setuid and setguid
    flags. Hopefully, that binary only checks that a service’s process
    exists.
2019-06-10 14:32:30 +02:00
Luka Vandervelden 5eb0849abd Project organisation for WIP separate binaries.
- The idea would be to allow running specific commands from SUID
    binaries when unpriviledged users should be able to run them. Such
    commands include getting services status, which need root
    priviledges to be implemented but shouldn’t be required by users.
  - Because the repository now builds several binaries, src/main.cr is
    now src/service.cr and a WIP src/status.cr has been added.
  - The `status` binary will likely be installed in libexec in the
    future, with the SUID bit set.
2019-06-09 18:08:59 +02:00