- add libbb function str_tolower to convert a string to lowercase.
[oweals/busybox.git] / miscutils / crond.c
index 9d511f960f3a370a4767b2fabe7fdb6e9c5d7a05..24aa3dcc3a7b124f7a25c6608cb333002d4716a5 100644 (file)
@@ -185,6 +185,7 @@ int crond_main(int ac, char **av)
                int rescan = 60;
                short sleep_time = 60;
 
+               write_pidfile("/var/run/crond.pid");
                for (;;) {
                        sleep((sleep_time + 1) - (short) (time(NULL) % sleep_time));