diff options
author | green <green@FreeBSD.org> | 2002-12-17 20:39:38 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2002-12-17 20:39:38 +0000 |
commit | 29351ad4913636188d681dd22098f841bf178c5d (patch) | |
tree | 9c118d683b1caee9895a061d59c2db6d8471b625 /sbin/init/init.c | |
parent | 10dbdf9107f32380696157a4dff10d142f4658d1 (diff) | |
download | FreeBSD-src-29351ad4913636188d681dd22098f841bf178c5d.zip FreeBSD-src-29351ad4913636188d681dd22098f841bf178c5d.tar.gz |
/home/green/tmp/cvsSFosXg
Diffstat (limited to 'sbin/init/init.c')
-rw-r--r-- | sbin/init/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c index 2ad5d95..64ad43b 100644 --- a/sbin/init/init.c +++ b/sbin/init/init.c @@ -737,6 +737,8 @@ runcom(void) #ifdef LOGIN_CAP setprocresources(RESOURCE_RC); #endif + execv(_PATH_RUNCOM, argv + 1); + warning("can't exec %s: %m", _PATH_RUNCOM); execv(_PATH_BSHELL, argv); stall("can't exec %s for %s: %m", _PATH_BSHELL, _PATH_RUNCOM); _exit(1); /* force single user mode */ @@ -1497,6 +1499,8 @@ runshutdown(void) #ifdef LOGIN_CAP setprocresources(RESOURCE_RC); #endif + execv(_PATH_RUNDOWN, argv + 1); + warning("can't exec %s: %m", _PATH_RUNDOWN); execv(_PATH_BSHELL, argv); warning("can't exec %s for %s: %m", _PATH_BSHELL, _PATH_RUNDOWN); _exit(1); /* force single user mode */ |