summaryrefslogtreecommitdiffstats
path: root/src/daemon.h
blob: 77186daae2756b397b7abd33bc88d61b0d9b8ae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef NETDATA_DAEMON_H
#define NETDATA_DAEMON_H 1

extern void sig_handler(int signo);

extern void prepare_rundir();

extern int become_user(const char *username);

extern int become_daemon(int dont_fork, int close_all_files, const char *user, const char *input, const char *output, const char *error, const char *access, int *access_fd, FILE **access_fp);

extern void netdata_cleanup_and_exit(int i);

#endif /* NETDATA_DAEMON_H */