summaryrefslogtreecommitdiff
path: root/pullreqd.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-04 10:20:24 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-04 10:20:24 -0400
commit58b80704effdff1d387c9bdc8b0a8e783b23690e (patch)
tree3d972ecc58520f3ce52cbe5ab890cbaeb0a9782f /pullreqd.c
parent0ec73fc148769b727b1c64abdb4a914a3e1d9ef8 (diff)
Added the main function.
Diffstat (limited to 'pullreqd.c')
-rw-r--r--pullreqd.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/pullreqd.c b/pullreqd.c
index cb6d680..9bb77e7 100644
--- a/pullreqd.c
+++ b/pullreqd.c
@@ -62,3 +62,16 @@ void init_daemon(int change_dir, char *path) {
/* Open the logfile. */
openlog("pullreqd", LOG_PID, LOG_DAEMON);
}
+
+int main(int argc, char **argv) {
+ init_daemon();
+ syslog(LOG_NOTICE, "pullreqd started.");
+ for (;;) {
+ break;
+ }
+ syslog(LOG_NOTICE, "pullreqd stopped.");
+
+ closelog();
+
+ return EXIT_SUCCESS;
+}