Displaying 15 results from an estimated 15 matches for "_pid".
Did you mean:
_id
2004 Aug 06
4
REQ: Parent Id
Before the official release of icecast2 1.0 (non beta) i would like to see
pid file management,
ive discussed this before on how to capture the pid, but ended up with alot
of bash rigamaroo that mounted to even more
headaches.
omething in the config file like
<pid>/path/to/icecast.pid</pid>
I would be willing to donate some bandwidth to xiph, to aleaviate this issue
that causes sever
2004 Aug 06
4
REQ: Parent Id
...tional `ps` output, nor pidof
> having any problems with itself (it can never have a PPID of 1, so it
> won't return its own PID, ever).
>
> --- snip ---
> #!/bin/sh
>
> # pidof() code by Christoph Moench-Tegeder
> # and Michael Erdely (from tech@openbsd.org)
> #
> _pidof()
> {
> ps -acxo pid,ppid,command | \
> awk "\$3==\"$1\" && \$2==\"1\" {print \$1}"
> }
>
> if [ $# -ne 1 ] ; then
> cat << _EOF
> Usage: $0 <daemon_name>
>
> $0 displays the PID of a process,...
2004 Aug 06
0
REQ: Parent Id
...ive - no
insane greppery, no conflicts with additional `ps` output, nor pidof
having any problems with itself (it can never have a PPID of 1, so it
won't return its own PID, ever).
--- snip ---
#!/bin/sh
# pidof() code by Christoph Moench-Tegeder
# and Michael Erdely (from tech@openbsd.org)
#
_pidof()
{
ps -acxo pid,ppid,command | \
awk "\$3==\"$1\" && \$2==\"1\" {print \$1}"
}
if [ $# -ne 1 ] ; then
cat << _EOF
Usage: $0 <daemon_name>
$0 displays the PID of a process,
if its parent PID is 1.
$0 exits with the retur...
2004 Aug 06
0
REQ: Parent Id
...problems with itself (it can never have a PPID of 1, so it
> > won't return its own PID, ever).
> >
> > --- snip ---
> > #!/bin/sh
> >
> > # pidof() code by Christoph Moench-Tegeder
> > # and Michael Erdely (from tech@openbsd.org)
> > #
> > _pidof()
> > {
> > ps -acxo pid,ppid,command | \
> > awk "\$3==\"$1\" && \$2==\"1\" {print \$1}"
> > }
> >
> > if [ $# -ne 1 ] ; then
> > cat << _EOF
> > Usage: $0 <daemon_name>
>...
2015 Mar 05
0
[PATCH v3] fish: add journal-view command
...rs, "_HOSTNAME", &hostname_len);
- identifier = get_journal_field (xattrs, "SYSLOG_IDENTIFIER",
- &identifier_len);
- comm = get_journal_field (xattrs, "_COMM", &comm_len);
- pid = get_journal_field (xattrs, "_PID", &pid_len);
- message = get_journal_field (xattrs, "MESSAGE", &message_len);
-
- /* Timestamp. */
- if (ts >= 0) {
- char buf[64];
- time_t t = ts / 1000000;
- struct tm tm;
-
- if (strftime (buf, sizeof buf, "%b %d %H:%M:%S",
-...
2015 Mar 03
2
[PATCH v2] RFE: journal reader in guestfish
This implements new guestfish only command called journal-view.
There seems to be a minor issue when user wants to run it through pager (more)
and wants cancel it. User will end up with stuck guestfish until journal-view
transfers all journal items.
Output is now configurable, it's the same format as virt-log has, since both
uses same code now.
Maros Zatko (1):
fish: add journal-view
2015 Mar 05
2
[PATCH v3] RFE: journal reader in guestfish
There seems to be a minor issue when user wants to run it through pager (more)
and wants cancel it. User will end up with stuck guestfish until journal-view
transfers all journal items.
Output is now configurable, it's the same format as virt-log has, since both
uses same code now.
Maros Zatko (1):
fish: add journal-view command
cat/Makefile.am | 1 +
cat/log.c | 113
2015 Oct 16
2
[PATCH v6 0/2] RFE: journal reader in guestfish
Output is configurable, it's the same format as virt-log has, since both
uses same code.
First patch moves get_journal_field around and renames it to journal_view
and the next one reimplements it a bit and brings it to guestfish.
Maros Zatko (2):
cat: move get_journal_field to fish/journal.c
fish: add journal-view command (RHBZ#988100)
.gnulib | 2 +-
2015 Aug 31
5
[PATCH v5 0/2] RFE: journal reader in guestfish
There seems to be a minor issue when user wants to run it through pager (more)
and wants cancel it. User will end up with stuck guestfish until journal-view
transfers all journal items.
Output is configurable, it's the same format as virt-log has, since both
uses same code.
Maros Zatko (2):
cat: move get_journal_field to fish/journal.c
fish: add journal-view command (RHBZ#988100)
2015 Mar 03
0
[PATCH v2] fish: add journal-view command
...rs, "_HOSTNAME", &hostname_len);
- identifier = get_journal_field (xattrs, "SYSLOG_IDENTIFIER",
- &identifier_len);
- comm = get_journal_field (xattrs, "_COMM", &comm_len);
- pid = get_journal_field (xattrs, "_PID", &pid_len);
- message = get_journal_field (xattrs, "MESSAGE", &message_len);
-
- /* Timestamp. */
- if (ts >= 0) {
- char buf[64];
- time_t t = ts / 1000000;
- struct tm tm;
-
- if (strftime (buf, sizeof buf, "%b %d %H:%M:%S",
-...
2015 Feb 23
1
[PATCH] RFE: journal reader in guestfish
This implements new guestfish only command called journal-view.
There seems to be a minor issue when user wants to run it through pager (more)
and wants cancel it. User will end up with stuck guestfish until journal-view
transfers all journal items.
Output is not yet configurable, it's the same format as virt-log has.
Maros Zatko (1):
fish: add journal-view command
fish/Makefile.am
2015 Aug 31
0
[PATCH v5 2/2] fish: add journal-view command (RHBZ#988100)
...or/README first. *)
+
+open Printf
+
+open String
+open Docstrings
+open Pr
+
+open Char
+open List
+
+(* Arguments used by journal-view command *)
+
+type op_type = Options of (char * string) list;; (* option, option name*)
+
+let op = Options [
+ (* Trusted fields *)
+ ('a', "_PID");
+ ('b', "_UID");
+ ('c', "_GID");
+ ('d', "_COMM");
+ ('e', "_EXE");
+ ('f', "_CMDLINE");
+ ('g', "_CAP_EFFECTIVE");
+ ('h', "_AUDIT_SESSION");
+ ('i'...
2015 Aug 31
0
[PATCH v5 1/2] cat: move get_journal_field to fish/journal.c
...rs, "_HOSTNAME", &hostname_len);
- identifier = get_journal_field (xattrs, "SYSLOG_IDENTIFIER",
- &identifier_len);
- comm = get_journal_field (xattrs, "_COMM", &comm_len);
- pid = get_journal_field (xattrs, "_PID", &pid_len);
- message = get_journal_field (xattrs, "MESSAGE", &message_len);
-
- /* Timestamp. */
- if (ts >= 0) {
- char buf[64];
- time_t t = ts / 1000000;
- struct tm tm;
-
- if (strftime (buf, sizeof buf, "%b %d %H:%M:%S",
-...
2015 Aug 27
0
[PATCH v4 1/2] cat: move get_journal_field to fish/journal.c
...rs, "_HOSTNAME", &hostname_len);
- identifier = get_journal_field (xattrs, "SYSLOG_IDENTIFIER",
- &identifier_len);
- comm = get_journal_field (xattrs, "_COMM", &comm_len);
- pid = get_journal_field (xattrs, "_PID", &pid_len);
- message = get_journal_field (xattrs, "MESSAGE", &message_len);
-
- /* Timestamp. */
- if (ts >= 0) {
- char buf[64];
- time_t t = ts / 1000000;
- struct tm tm;
-
- if (strftime (buf, sizeof buf, "%b %d %H:%M:%S",
-...
2015 Aug 27
4
[PATCH v4 0/2] RFE: journal reader in guestfish
There seems to be a minor issue when user wants to run it through pager (more)
and wants cancel it. User will end up with stuck guestfish until journal-view
transfers all journal items.
Output is configurable, it's the same format as virt-log has, since both
uses same code.
Maros Zatko (2):
cat: move get_journal_field to fish/journal.c
fish: add journal-view command
cat/Makefile.am