ajacoutot
510e3b9553
Fix an issue when uid != euid (e.g. when running shutdown(8) as a
regular user, member of the operator group); rm(1) was waiting for
interactive input to remove the runfiles which made no sense, so just
use `-f'.
issue spotted by weerd@
ok weerd@ robert@
13 years ago
dtucker
04872c0bfe
regenerated moduli file; ok deraadt
13 years ago
ajacoutot
1be9f1cf5d
Add a sample mixerctl.conf(5).
Pretty terse for now but will eventually come with some more complex
examples when ratchov@ finishes some ongoing work on aucat(1).
ok ratchov@ jmc@ deraadt@
13 years ago
miod
3dbf7c2cbf
regen
13 years ago
miod
985c9639af
Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@
13 years ago
uwe
9fc24ad2c0
Add etc/etc.beagle (copied from armish); ok drahn@
13 years ago
matthieu
d0078776bd
srv_ctrl isn't a directory in xkeyboard-config 2.4.1
13 years ago
halex
d95968b0d3
either set or unset variables that are to be examined further on, don't
just leave them untouched
ok ajacoutot@ sthen@ schwarze@
13 years ago
ajacoutot
2d0331d584
Start ldapd(8) earlier so that ypldap(8) can properly run (an LDAP
server _must_ be running and accessible before ypldap is started).
Add a proper pexp in the ypldap rc script.
discussed with pyr@ robert@ deraadt@
ok deraadt@
13 years ago
schwarze
939836ed72
Localize _new_pexp unconditionally, or rc_read_runfile()
might pick it up from a polluted environment.
Requested by halex@, ok ajacoutot@ halex@
13 years ago
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
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
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
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
miod
e9d0d325e3
regen
13 years ago
miod
2a61dccde4
Add audio devices.
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