* New process-control RPC feature in clixon-lib.yang to manage processes
* This is an alternative to manage a clixon daemon via sudtemd, containerd or other
* One important special case is starting the clixon-restconf daemon internally
* This is how it works:
* Register a process via `clixon_process_register(h, name, namespace, argv, argc)`
* Use process-control RPC defined in clixon-lib.yang to start/stop/restart or query status on that process
* Example code in the main example
This commit is contained in:
parent
8540820698
commit
22adc58187
19 changed files with 971 additions and 47 deletions
|
|
@ -44,12 +44,13 @@ typedef void (*sigfn_t)(int);
|
|||
/*
|
||||
* Prototypes
|
||||
*/
|
||||
int set_signal(int signo, void (*handler)(int), void (**oldhandler)(int));
|
||||
int set_signal(int signo, void (*handler)(int), void (**oldhandler)(int));
|
||||
void clicon_signal_block(int);
|
||||
void clicon_signal_unblock(int);
|
||||
|
||||
int pidfile_get(char *pidfile, pid_t *pid0);
|
||||
int pidfile_write(char *pidfile);
|
||||
int pidfile_zapold(pid_t pid);
|
||||
int pidfile_get_fd(FILE *f, pid_t *pid0);
|
||||
int pidfile_get(char *pidfile, pid_t *pid0);
|
||||
int pidfile_write(char *pidfile);
|
||||
int pidfile_zapold(pid_t pid);
|
||||
|
||||
#endif /* _CLIXON_SIG_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue