guowenxue
2022-04-10 d56a8d8a0d687f029ef42cd1ed99e8593f5ec73d
iotd/lylib/util_proc.h
@@ -34,6 +34,9 @@
/* excute a linux command by system() */
extern void exec_system_cmd(const char *format, ...);
/* check program already running or not, if not then run it and record pid into $pidfile */
extern int check_set_program_running(int daemon, char *pidfile);
/* check program already running or not from $pid_file  */
extern int check_daemon_running(const char *pid_file);