aboutsummaryrefslogtreecommitdiffstats
path: root/meta-skeleton
AgeCommit message (Expand)Author
2014-05-06linux-yocto-custom: provide defconfig guidanceBruce Ashfield
2014-03-27meta-skeleton: Add name attribute to SRC_URIJukka Rissanen
2014-03-17linux-yocto-custom: Use SRCREV_machineDarren Hart
2014-02-20recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issues (part 2)Matthieu Crapet
2014-02-02meta-skeleton: rename busybox's bbappend fileChen Qi
2014-01-02Update after toplevel LICENSE file checksum changeRichard Purdie
2014-01-02Fix license notices for OE-CorePaul Eggleton
2014-01-02Replace one-line DESCRIPTION with SUMMARYPaul Eggleton
2013-12-14useradd-example: add example for setting clear text passwordChen Qi
2013-08-20hello-mod: Add comment for kernel module package namingYang Shi
2013-08-20Revert "hello-mod: Ensure the produced package name begins with kernel-module-"Yang Shi
2013-08-14meta-skeleton: layer.conf Should also have .bbappend in exampleSaul Wold
2013-08-13meta-skeleton: Add busybox config fragment exampleSaul Wold
2013-04-13hello-mod: Ensure the produced package name begins with kernel-module-Mark Hatle
2013-04-10meta-*/conf/layer.conf: tweak BBFILES commentPaul Eggleton
2013-03-20core-image-multilib-example: Location of core-image-sato.bb changedMark Hatle
2013-03-19layer.conf: avoid unnecessary early expansion with :=Christopher Larson
2013-03-18layer.conf: Add LAYERVERSION and LAYERDEPENDSwenzong.fan@windriver.com
2013-02-25meta-skeleton: Add example multilib usagesRichard Purdie
2012-10-03linux-yocto-custom: Clarify defconfig usageDarren Hart
2012-08-07linux-yocto-custom: Clarify usage and clear COMPATIBLE_MACHINEDarren Hart
2012-08-06useradd-example: use ${datadir} instead of /usr/share for packagingJavier Martinez Canillas
2012-07-03linux-yocto-custom: Remove linux-toolsDarren Hart
2012-06-18meta-skeleton: add linux-yocto-custom reference recipeBruce Ashfield
2012-04-10hello-mod: Move hello-mod from meta to meta-skeletonDarren Hart
2011-11-10useradd-example.bb: update example documentation commentsScott Garman
2011-07-01useradd-example: example recipe for using inherit useraddScott Garman
2011-05-18Add a skeleton for init scriptsRobert Yang
2011-05-18Add the layer meta-skeletonRobert Yang
r *filename) } void -writepid(pid_t pid, int clear) -{ - FILE *fp; - - fp = fopen(pidfilename, clear? "w" : "a"); - if (fp == NULL) - Dprintf(L_FATAL, "Unable to open %s: %m", pidfilename); - fprintf(fp, "%d\n", pid); - fclose(fp); - return; -} - -void failsafe(int level, int ncopies) { int *servers, running, child, i; Index: nfs-server-2.2beta47/mountd.c =================================================================== --- nfs-server-2.2beta47.orig/mountd.c +++ nfs-server-2.2beta47/mountd.c @@ -425,9 +425,6 @@ main(int argc, char **argv) background_logging(); } - /* Become a daemon */ - if (!foreground) - daemonize(); /* Initialize the FH module. */ fh_init(); @@ -435,11 +432,15 @@ main(int argc, char **argv) /* Initialize the AUTH module. */ auth_init(auth_file); - /* Write pidfile */ if (mount_pid_file == 0) mount_pid_file = _PATH_MOUNTD_PIDFILE; setpidpath(mount_pid_file); - writepid(getpid(), 1); + + /* Become a daemon */ + if (!foreground) + daemonize(); + else + writepid(getpid(), 1); /* Failsafe mode */ if (failsafe_level) Index: nfs-server-2.2beta47/nfsd.c =================================================================== --- nfs-server-2.2beta47.orig/nfsd.c +++ nfs-server-2.2beta47/nfsd.c @@ -1147,11 +1147,6 @@ main(int argc, char **argv) /* if (ncopies > 1) read_only = 1; */ - /* - * We first fork off a child and detach from tty - */ - if (!foreground) - daemonize(); /* Initialize the AUTH module. */ auth_init(auth_file); @@ -1160,9 +1155,16 @@ main(int argc, char **argv) nfs_pid_file = _PATH_NFSD_PIDFILE; setpidpath(nfs_pid_file); + /* + * We first fork off a child and detach from tty + */ + if (!foreground) + daemonize(); + else + writepid(getpid(), 1); + if (failsafe_level == 0) { /* Start multiple copies of the server */ - writepid(getpid(), 1); for (i = 1; i < ncopies; i++) { pid_t pid;