Displaying 13 results from an estimated 13 matches for "mount_proc".
Did you mean:
mount_proxy
2006 Jan 14
19
Stopping WEBrick?
Is there any way to request WEBrick to shutdown besides hitting CTRL-C
at the console?
I''m looking for, perhaps, a script/shutdown command, or perhaps a
special URL that will request WEBrick to die.
It can be a command run in a different shell, or, as I said, a special
URL.
Anyone?
Tom Harris
Cisco Systems
--
Posted via http://www.ruby-forum.com/.
2006 Nov 23
1
Script to restart webrick
Enjoy this little script to restart webrick:
#!/bin/sh
pid=$(ps -o pid,command | grep ''\<ruby script/server\>'' | awk ''{print
$1}'')
kill -9 $pid
ruby script/server
Run on prompt by entering: sh scriptname.sh
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2016 Mar 17
9
[PATCH supermin 0/5] Make supermin mini-initrd quieter and faster.
Various patches to make supermin quieter. By outputting fewer
messages on the fast path, we use the slow emulated UART less, and
this improves boot times.
Also remove some kernel modules that we cannot or should not be using,
which also improves boot times.
Rich.
2016 Jun 14
1
[PATCH supermin] init: Delete initramfs files before chrooting into the appliance.
...upermin-helper reimplementation in C.
- * Copyright (C) 2009-2014 Red Hat Inc.
+ * Copyright (C) 2009-2016 Red Hat Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -80,6 +80,7 @@ static void mount_proc (void);
static void print_uptime (void);
static void read_cmdline (void);
static void insmod (const char *filename);
+static void delete_initramfs_files (void);
static void show_directory (const char *dir);
static char cmdline[1024];
@@ -264,9 +265,12 @@ main ()
exit (EXIT_FAILURE);...
2017 Apr 19
6
[PATCH supermin 0/3] Require root= parameter, refactor init.
Require the root= parameter is passed to specify which
root (apppliance) to mount. Libguestfs has done this since 2012.
The other two patches are small code refactorings in the init
program.
Rich.
2017 Apr 19
0
[PATCH supermin 3/3] init: Refactor for-loop which waits for root device to show up.
...*p;
const char *mount_options = "";
+ struct timespec t;
+#define NANOSLEEP(ns) do { \
+ t.tv_sec = delay_ns / 1000000000; \
+ t.tv_nsec = delay_ns % 1000000000; \
+ nanosleep (&t, NULL); \
+ } while(0)
+
mount_proc ();
fprintf (stderr, "supermin: ext2 mini initrd starting up: "
@@ -184,7 +190,9 @@ main ()
asprintf (&path, "/sys/block/%s/dev", root);
- while (delay_ns <= MAX_ROOT_WAIT * UINT64_C(1000000000)) {
+ for (delay_ns = 250000;
+ delay_ns <= MAX_ROOT_WA...
2006 Mar 24
2
Basic Auth in WEBrick
...for starting WEBrick such as:
realm = "Gnome realm"
start_webrick {|server|
htpasswd = HTTPAuth::Htpasswd.new(/tmp/gnome.htpasswd)
authenticator = HTTPAuth::BasicAuth.new(
:UserDb => htpasswd
:Realm => realm
)
server.mount_proc(/htpasswd_auth) {|req resp|
authenticator.authenticate(req resp)
resp.body = "You are authenticated to see the super secret
datan"
}
}
Do I replace the script/server file with something like this? If
there an actual example of working with rails, not j...
2017 Apr 19
0
[PATCH supermin 2/3] init: Move variable declarations to the top of the function.
...-96,6 +96,18 @@ static char line[1024];
int
main ()
{
+ FILE *fp;
+ size_t n;
+ char *root, *path;
+ size_t len;
+ int dax = 0;
+ uint64_t delay_ns = 250000;
+ int virtio_message = 0;
+ struct timespec t;
+ int major, minor;
+ char *p;
+ const char *mount_options = "";
+
mount_proc ();
fprintf (stderr, "supermin: ext2 mini initrd starting up: "
@@ -132,13 +144,13 @@ main ()
exit (EXIT_FAILURE);
}
- FILE *fp = fopen ("/modules", "r");
+ fp = fopen ("/modules", "r");
if (fp == NULL) {
perror ("fopen...
2011 Jun 04
3
[PATCH 1/3] febootstrap/helper/init: make sure /proc is mounted into chroot.
---
helper/init.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/helper/init.c b/helper/init.c
index 0ca3135..2b5dacf 100644
--- a/helper/init.c
+++ b/helper/init.c
@@ -163,8 +163,10 @@ main ()
chdir ("/");
- /* Run /init from ext2 filesystem. */
+ mount_proc ();
print_uptime ();
+
+ /* Run /init from ext2 filesystem. */
execl ("/init", "init", NULL);
perror ("execl: /init");
--
1.7.5.3
2016 Feb 17
8
[PATCH supermin 0/2] Allow an alternate libc to be used for init.
v1 -> v2:
- If we split out the init program into a separate init/ directory,
that makes it much easier to build against an alternate libc.
I tried to build against uClibc, but uClibc requires an entire build
chain, which looked like it was going to be a massive ballache.
Rich.
2012 Jun 12
1
[PATCH] Add virtio-scsi support to febootstrap.
This patch is the minimum possible to add virtio-scsi support to
febootstrap.
Problem: SCSI devices are detected asynchronously after the Linux
kernel module is loaded.
The usual solutions to this involve scsi_wait_scan (deprecated
apparently) or udev. However febootstrap doesn't use udev, and adding
it is a ton of work with a very uncertain outcome.
So the minimum possible change is to
2011 Jun 05
1
another missing link in febootstrap; failing tests for libguestfs
...LE_JA='ja_JP.EUC-JP' LOCALE_ZH_CN='zh_CN.GB18030' MAKE='make' ${dir}$tst
FAIL: test-symlinkat
-Hilko
diff --git a/helper/init.c b/helper/init.c
index 50ed19e..8f3834f 100644
--- a/helper/init.c
+++ b/helper/init.c
@@ -181,6 +181,12 @@ main ()
chdir ("/");
mount_proc ();
+ if (mount ("tmpfs", "/run", "tmpfs",
+ MS_NOEXEC|MS_NOSUID, "size=10%,mode=0755") == -1) {
+ perror ("mount: /run");
+ exit (EXIT_FAILURE);
+ }
+y mkdir ("/run/lock", 01777);
print_uptime ();
/* Run /init...
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...symbol version";
- case EINVAL:
- return "Invalid parameters";
- default:
- return strerror(err);
- }
-}
-
-/* Leave this enabled for now. When we get more confident in the boot
- * process we can turn this off or make it configurable.
- */
-#define verbose 1
-
-static void mount_proc (void);
-static void print_uptime (void);
-static void read_cmdline (void);
-static void insmod (const char *filename);
-static void show_directory (const char *dir);
-
-static char cmdline[1024];
-static char line[1024];
-
-int
-main ()
-{
- mount_proc ();
-
- print_uptime ();
- fprintf (stderr...