schwarze
21f3cf257e
When the _RC_RUNFILE (by some ill chance) happened to be empty or
reading it failed, ${pexp} ended up as the empty string and the script
would send SIGTERM to init(1), which was really inconvenient.
Fix that by never allowing pexp to become empty.
My patch considerably simplified by and ok ajacoutot@.
13 years ago
ajacoutot
1c38ab8e2d
Finally make it possible to restart/stop a daemon after having changed
its _flags in rc.conf(8).
When the rc.d(8) system starts a daemon, it will record its pexp under
/var/run/rc.d/rcscriptname and use that to interact with it (errors in
creating /var/run/rc.d or missing pexp file are non fatal, the framework
will just fallback to what it currently does).
deraadt@ doesn't mind a long as it doesn't come in the way of people
manually managing their daemons.
discussed with and input from sthen@ halex@ robert@ schwarze@
ok sthen@ robert@
13 years ago
deraadt
e73b0d38a5
The new ypbind changes requires that the domainname be set before
rc.conf is run. There's no real downside.
ok aja
13 years ago
ajacoutot
3731b2cd85
Check if we are root right from the start.
ok robert@
13 years ago
ajacoutot
58e9cbce78
Prepend an underscore to internal variable names; this was reverted by
mistake in the previous commit.
No functionnal change.
ok robert@
13 years ago
ajacoutot
21d126d25a
Fix a small regression reported by nicm@: when domainname is set but
/var/yp/binding does not exist, do _not_ try to start ypbind.
Make it possible to start ypbind the same way as the other daemons
(using ypbind_flags) while preserving the historical startup behavior.
tested by deraadt@
13 years ago
deraadt
5ed886d791
sync
13 years ago
deraadt
a26d8773fe
ccd goes to the attic
discussed with jsing and millert
13 years ago
otto
7f73468da7
Make struct chunk_info a variable sized struct, wasting less
space for meta data by only allocating space actually needed for
the bitmap (modulo alignment requirements). ok deraadt@
13 years ago
ajacoutot
a3b3b9d573
rc_reload is valid here.
ok robert@
13 years ago
ajacoutot
20eae469d3
Add /usr/local/sbin to the default path (/sbin and /usr/sbin are
already there).
ok sthen@ millert@ gilles@ deraadt@
13 years ago
jasper
5501d18581
Stop spreading lies about the usage of 'nobody', it's confusing to link it
with NFS here. Result of a discussion with several.
ok deraadt@ millert@
13 years ago
halex
bb9d3c7e37
revert previous and pass on the RC_DEBUG and RC_FORCE flags in the start+stop
dance on restart rather than exporting them and expose the script to a
potentially polluted environment
ok ajacoutot@ robert@
13 years ago
ajacoutot
91843b8c72
Repair "restart" debug and force modes (we need to export RC_DEBUG and
RC_FORCE since "restart" calls "stop" then "start").
While here, append "_" to these variable names to make it clear they are
internal.
ok robert@
13 years ago
robert
d93f4ae7d0
since we are chrooting nginx by default let's set a sane default docroot
13 years ago
robert
86d1b89f6c
add config files for nginx, but keep them unlinked because they would
overlap with the port's config files
13 years ago
ajacoutot
cf230ea0bc
Add missing "*)" case statement and make sure RC_DEBUG and RC_FORCE are
unset beforehands; prodded by halex@
Add rc_usage().
ok halex@
13 years ago
schwarze
94a03919f6
install infnan(3/VAX) into man3/vax/ on all archs;
clean make build tested on i386;
ok deraadt@, no objections from martynas@
13 years ago
phessler
70681d307c
fix the two most offensive indentation violations in here.
pointed out by sthen@
13 years ago
phessler
a32e45b068
Add rdomain support to NTPd.
This basically adds the "rtable %d" keyword to "listen on", "server",
"servers" keywords, to specify which routing table to use.
OK henning@ claudio@ sthen@
manpage reviewed by jmc@
13 years ago
ajacoutot
9874076075
Remove the "portmap" variable, it's unused now (use portmap_flags).
ok deraadt@ robert@
13 years ago
robert
a47d4b4278
use a pexp here too; noted by MERIGHI Marcus <mcmer-openbsd@tor.at>
13 years ago
ajacoutot
0ebd8d99c9
Set defaults daemon_flags (same as advertised in rc.conf.local(5) so
that we can use these scripts right away with /etc/rc.d/XXX -f without
having to manually set _flags.
ok robert@
13 years ago
robert
658cf4e69a
Use arugments for rc script instead of environment variables to indicate
debug mode.
This commit also adds a force mode for the script to allow one to force
operations even if daemon_flags is set to NO.
In this case the sane default values will be used for each script.
e.g.: "/etc/rc.d/foo -f start" will start sshd even if it's disabled
ok ajacoutot@
13 years ago
okan
cdc16e8022
remove the /usr/share/man/ps* hierarchy and supporting variables; MANPS
disappeared during the source manuals switch.
no objections from schwarze@ jmc@ deraadt@
13 years ago
jmc
38829c6b69
tweak previous;
13 years ago
henning
cd6e519e99
improve -s description. the major points are set vs adjust and stay in
the forground until we receive a reply or hit the 15 second timeout.
with theo, evolved out of sth completely different
13 years ago
robert
58c707781f
use the correct regexp to find the ldapd server process
from MERIGHI Marcus <mcmer-openbsd@tor.at>
13 years ago
robert
84626692a3
Add a script for popa3d to support running it outside of inetd.
13 years ago
william
4df0422656
ntpd doesn't really support reload, so don't allow it in the rc script.
ok ajacoutot robert
13 years ago
matthieu
8fe165f391
Sync protocols 43 (ipv6-route) & 44 (ipv6-frag) names with IANA database.
ok henning@, bluhm@
13 years ago
jmc
16f1cecda2
some minor tweaks;
13 years ago
jmc
f30a4c031e
make -column lists pretty again;
specifically, rewrite them to permit some markup in the column headers,
and use "Ta" instead of literal tabs; mandoc does not currently match groff
100%, but a mandoc fix may be some time off, and we've gone enough releases
with poorly formatting column lists.
in some cases i have rewritten the lists as -tag, where -column made
little sense.
13 years ago
miod
e9d0d325e3
regen
13 years ago
miod
2a61dccde4
Add audio devices.
13 years ago
jmc
a9a87846de
in column lists, enforce the following ordering:
.Bl -column header1 header2 ... <Bl flags>
mixing things up confuses mandoc, and adding flags in can screw up the list.
this hopefully just makes things a bit safer (and more consistent).
(one more bit of work left and all column lists should format how we want)
13 years ago
aschrijver
a07b5115e0
Add support for the netid.byname YP map. This map is used by getgrouplist(3),
which is used by (amongst other things) initgroups(3) to set the supplemantary
groups on login.
OK pyr@
13 years ago
nicm
629fd2b83a
Read amd_master using print -rn, fixes problems if the file has multiple
lines. Problem noticed by me, this solution from halex@.
ok halex aja
13 years ago
ajacoutot
1c55be2758
Add IANA allocated port for sieve: 4190.
ok sthen@ deraadt@
13 years ago
robert
84efc8ed17
create pflog0 if pf is enabled just like we do in the pflogd script
from sthen@
13 years ago
robert
8c0d3db40f
handle /var/db/mountdtab in the mountd script and not in nfsd
13 years ago
robert
16f8f5639d
catch all the three different process names in pexp
13 years ago
robert
1779710298
when reloading do an rc_wait instead of just an rc_check
from david@, okay sthen@ and input from schwarze@
13 years ago
robert
23647f1532
redirect rc_err() output to stderr, from david@
13 years ago
miod
f04401e1db
Fix kernels list
13 years ago
kettenis
319526b4e1
regen
13 years ago
kettenis
69a387f92d
Make sure /dev/diskmap ends of on ramdisk filesystems.
Pointed out by miod@
13 years ago
halex
6ff9d79ec0
supress empty rc.firsttime email and add hostname to the subject line
ok deraadt krw
13 years ago
sthen
b9da1730d8
Show an example of overriding a limit for a specific daemon with rc.d(8).
Use bgpd(8) for this which on a peering router often needs openfiles-cur
to be higher than the default. ok henning@ claudio@ deraadt@
13 years ago
jmc
758ce3a339
tweak previous;
13 years ago