mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-03 01:41:28 -05:00
Add optional feature to notify status to systemd
When enabled, the feature uses libsystemd to notify service manager about the following states: - ready - periodic alive ping (20s) - stopping It allows to use Cage in a systemd unit with following options: Type=notify WatchdogSec=30s
This commit is contained in:
parent
2e593fe5a8
commit
a500d11f0f
7 changed files with 86 additions and 0 deletions
1
server.h
1
server.h
|
|
@ -66,6 +66,7 @@ struct cg_server {
|
|||
bool return_app_code;
|
||||
bool terminated;
|
||||
enum wlr_log_importance log_level;
|
||||
struct wl_event_source *alive_source;
|
||||
};
|
||||
|
||||
void server_terminate(struct cg_server *server);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue