guowenxue
2022-04-19 edcdb8b7e2b21a4e4ec46f39f13a8601852d5957
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);