~ubuntu-branches/ubuntu/karmic/sysvinit/karmic-updates

« back to all changes in this revision

Viewing changes to man/pidof.8

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2009-09-07 19:56:53 UTC
  • mfrom: (1.1.4 upstream) (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090907195653-2i6t0j91wfbf1f0d
Tags: 2.87dsf-4ubuntu1
* Merge from debian unstable, remaining changes:
  - Support Cell processor:
    + debian/initscripts/postinst: Create spu system group and /spu mount
      point if we are running on a Cell processor.
    + debian/initscripts/etc/init.d/mountkernfs.sh: Mount spufs if Cell
      processor is detected.
    + debian/initscripts/lib/init/mount-functions.sh: Modprobe spufs
      if not available.
    + debian/control: Add initscripts dependency 'passwd' for groupadd.
    (Forwarded to Debian #483399)
  - Use tmpfs mounts for /var/lock and /var/run:
    + debian/initscripts/share/default.rcS: Enable RAMRUN and RAMLOCK by
      default.
    + debian/initscripts.postinst: Enable RAMRUN and RAMLOCK in
      /etc/default/rcS on upgrades. This needs to be kept until the next
      LTS.
    + debian/initscripts/etc/init.d/mountkernfs.sh: Propagate files from the
      initramfs to our new /var/run, so that we can populate
      /var/run/sendsigs.omit from initramfs.
  - Boot ordering differences:
    + mountkernfs.sh: 02 -> 01
    + mountdevsubfs.sh: 04 -> 11
    + bootlogd: disabled by default
    + checkroot.sh: 10 -> 20
    + mtab.sh: 12 -> 22
  - debian/patches/91_sulogin_lockedpw.dpatch: Disable "root account is
    locked" warning, since this is the default in Ubuntu. Document this in
    sulogin.8.
  - debian/control: Drop Essential: yes from packages since we use Upstart.
  - debian/control: Conflict/Replace sysvconfig which has also previously
    provided service(8).
  - debian/control, debian/rules: Previous name for sysvinit-utils was
    'sysvutils' in Ubuntu, so Conflict/Replace/Provide it. Also create a
    dummy sysvutils package, since Hardy has reverse versioned dependencies
    to it. This needs to be kept until after the next LTS.
  - debian/control: Depend on lsb-base (>= 3.2-14) for status_of_proc()
    function.
  - debian/initscripts/etc/init.d/checkfs.sh: Don't depend on hwclockfirst
    which Ubuntu does not have.
  - debian/initscripts/etc/init.d/mountkernfs.sh: Always mount devpts, and
    do not touch /dev/ptmx (which is already managed by udev).
  - debian/initscripts/etc/init.d/mountkernfs.sh: mount fusectl if it is
    available
  - debian/initscripts/etc/init.d/mountkernfs.sh: mount securityfs if it is
    available. This allows for easier AppArmor confinement of applications
    early in the boot process. LP: #399954
  - debian/initscripts/etc/init.d/mountkernfs.sh: mount debugfs if it is
    available.
  - debian/initscripts/etc/init.d/ondemand: Sleep for 60 seconds, then
    set CPU Frequency Scaling governor to "ondemand".   LP: #341573.
  - debian/initscripts/etc/init.d/umountfs: Don't unmount filesystems
    that precede root or use force for some mountpoints.
  - debian/initscripts/etc/network/if-up.d/mountnfs: Rename ifstate
    file to /var/run/network/ifstate
  - ./debian/initscripts/lib/init/usplash-fsck-functions.sh: Use blkid,
    vol_id is gone.
  - debian/initscripts.{pre,postinst}: waitnfs.sh -> mountnfs.sh renaming
    transition. This needs to be kept until after the next LTS.

LP: #32455, #94120, #160197, #382097 (amongst others).

* debian/sysv-rc/sbin/update-rc.d: Dropped support for "multiuser"
  command-line option.
* debian/rules: Compat symlink from /usr/bin/service to /usr/sbin/service
* debian/initscripts.postinst: Transition from bootlogs.sh to bootlogs

* debian/sysv-rc.postinst: Don't try and use insserv by default, though
  everything's in place for you to try if you like.  It can be activated
  with:
      USEINSSERV=yes dpkg-reconfigure sysv-rc

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
.SH SYNOPSIS
5
5
.B pidof
6
6
.RB [ \-s ]
 
7
.RB [ \-c ]
7
8
.RB [ \-x ]
8
9
.RB [ \-o
9
10
.IR omitpid ]
24
25
.SH OPTIONS
25
26
.IP -s
26
27
Single shot - this instructs the program to only return one \fIpid\fP.
 
28
.IP -c
 
29
Only return process ids that are running with the same root directory.
 
30
This option is ignored for non-root users, as they will be unable to check
 
31
the current root directory of processes they do not own.
27
32
.IP -x
28
33
Scripts too - this causes the program to also return process id's of
29
34
shells running the named scripts.
30
 
.IP -o \fIomitpid\fP
 
35
.IP "-o \fIomitpid\fP"
31
36
Tells \fIpidof\fP to omit processes with that process id. The special
32
37
pid \fB%PPID\fP can be used to name the parent process of the \fIpidof\fP
33
38
program, in other words the calling shell or shell script.
 
39
.SH "EXIT STATUS"
 
40
.TP
 
41
.B 0
 
42
At least one program was found with the requested name.
 
43
.TP
 
44
.B 1
 
45
No program was found with the requested name.
34
46
.SH NOTES
35
 
\fIpidof\fP is simply a (symbolic) link to the \fIkillall5\fP program,
36
 
which should also be located in \fP/sbin\fP.
 
47
\fIpidof\fP is actually the same program as \fIkillall5\fP;
 
48
the program behaves according to the name under which it is called.
37
49
.PP
38
50
When \fIpidof\fP is invoked with a full pathname to the program it
39
51
should find the pid of, it is reasonably safe. Otherwise it is possible
43
55
.BR shutdown (8),
44
56
.BR init (8),
45
57
.BR halt (8),
46
 
.BR reboot (8)
 
58
.BR reboot (8),
 
59
.BR killall5 (8)
47
60
.SH AUTHOR
48
61
Miquel van Smoorenburg, miquels@cistron.nl