Roy Marples
658a220638
Add (c) to Copyright
2009-05-01 15:11:40 +01:00
Roy Marples
ade85d4bd8
Improve style for KNF
2009-04-23 21:31:22 +00:00
Roy Marples
907ca8a89f
Set errno when service does not exist better.
2009-02-28 14:12:03 +00:00
Roy Marples
415fe87d8c
Clean up some compiler warnings.
2009-01-29 13:29:04 +00:00
Roy Marples
50b8aba8d9
Remove coldplug and just have hotplug which is a list of allowed/disallowed services. Makes things much easier.
2008-10-10 09:08:59 +00:00
Roy Marples
d6da8e8c48
sysinit is now a real runlevel that handles things like udev, dmesg and
...
mounting various bits in /dev and /sys.
init.sh JUST mounts /lib/rc/init.d (and /proc for Linux systems)
To make development of this easier we now return an empty RC_STRINGLIST
instead of a NULL for empty things.
If you don't have a udev init script installed, don't reboot your box OR
roll back to an older OpenRC version.
2008-10-10 08:37:21 +00:00
Roy Marples
15678263d5
Add new OpenVZ detection code
2008-08-19 06:36:43 +00:00
Roy Marples
2adc99a8f5
No need to include this.
2008-06-05 12:26:53 +00:00
Roy Marples
8759735711
Give an error when running zap as a generic user.
2008-04-08 22:57:42 +00:00
Roy Marples
caa4704ce6
Merge branch 'master' of git@git.overlays.gentoo.org:proj/openrc
2008-03-28 16:05:11 +00:00
Roy Marples
17d28fde42
Support XEN on NetBSD
2008-03-28 16:04:48 +00:00
Roy Marples
11e33e81c8
Remove rc_service_start/stop from librc as they block and unmask signals. The application may not wish this behaviour and should fork/exec the service itself.
2008-03-28 08:42:05 +00:00
Roy Marples
15d34d0a16
Add license blurb to a few files and append my email to my name.
2008-03-26 17:53:37 +00:00
Roy Marples
79719b5386
Fix adding services to the boot runlevel, #43
2008-03-24 10:13:49 +00:00
Mike Frysinger
7b08276fa8
add missing rc_stringlist_new/rc_sys hidden defs
2008-03-24 06:24:46 +00:00
Roy Marples
a1b9768243
Fix returning a service descriptions.
2008-03-23 22:58:25 +00:00
Roy Marples
d9ec62b22a
Add rc-service and update all softlevel refs to runlevel.
2008-03-19 17:11:50 +00:00
Roy Marples
f69013adbe
Fix define name
2008-03-19 15:15:09 +00:00
Roy Marples
cdd3881c1b
Return scheduled services correctly.
2008-03-19 12:26:09 +00:00
Roy Marples
51c825ceee
Make rc_getline private and save it's buffer so it's sort of like getline from glibc.
2008-03-17 21:27:37 +00:00
Roy Marples
c74cfabe2e
init some vars.
2008-03-17 16:42:31 +00:00
Roy Marples
5d77c0db6b
This should be a fixed buffer.
2008-03-17 14:42:10 +00:00
Roy Marples
4c14666423
Punt the rc_strcatpaths function and use snprintf instead to save on expensive malloc calls.
2008-03-17 13:25:56 +00:00
Roy Marples
40930d7d0a
Use correct TAILQ_CONCAT macro when not defined.
2008-03-16 17:27:13 +00:00
Roy Marples
cb9da6a262
Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ from queue(3). Refactor code style around the BSD KNF.
2008-03-16 17:00:56 +00:00
Roy Marples
4742e1ec69
d_type is not portable across filesystems.
2008-03-08 13:06:29 +00:00
Roy Marples
15cf41e713
Split VPS into VSERVER and OPENVZ
2008-03-03 17:19:56 +00:00
Roy Marples
f3e90dddbf
rc single and rc sysinit don't check sysvinit env vars in prefix.
2008-03-03 15:57:36 +00:00
Roy Marples
0aedc02860
Introduce LOCAL_PREFIX for a user maintained script location.
2008-03-03 10:33:42 +00:00
Roy Marples
c67c283b2a
Fix prefix test.
2008-03-03 08:06:53 +00:00
Roy Marples
7c092fbc79
If build in a prefix, define the system as prefix.
2008-03-02 10:40:08 +00:00
Roy Marples
baf217acc7
Fix unused var.
2008-03-01 09:27:29 +00:00
Roy Marples
f092045650
Support the use of PREFIX and PKG_PREFIX.
2008-02-28 11:08:49 +00:00
Roy Marples
79d40707db
Fix compile on Linux.
2008-02-19 15:51:59 +00:00
Roy Marples
0364bb2c84
Add the nojail keyword which excludes services marked as such from the dependency tree when in a jail, #bug 22
2008-02-19 14:15:53 +00:00
Roy Marples
3198d81a1f
Remove unsed vars
2008-02-10 23:13:09 +00:00
Roy Marples
4c6a66c3e9
Just restore the old set.
2008-02-04 21:48:05 +00:00
Roy Marples
5014968e83
Fix fork error message.
2008-02-02 22:17:44 +00:00
Roy Marples
7b27a12f6c
OK, we have to use fork with sigprocmask as not all systems provide a working and sane kernel call to bypass libc.
2008-02-02 14:22:37 +00:00
Roy Marples
8830b50636
Fix compile on systems that do not expose SYS_sigaction.
2008-02-02 13:00:22 +00:00
Roy Marples
e2919519d7
Using syscall in a vfork is safe for sigaction and sigprogmask.
2008-02-02 00:38:06 +00:00
Roy Marples
ad04517623
Block signals to avoid fork /signal races.
2008-02-02 00:17:35 +00:00
Roy Marples
4bdfccc2c2
Fix adding net scripts to the boot runlevel.
2008-01-30 12:50:44 +00:00
Roy Marples
b4bff9ce5e
Quiet some lint warnings.
2008-01-22 10:29:15 +00:00
Roy Marples
c6774d1c74
If adding to the boot runlevel, ensure that the realpath of the resolved service points to /etc/init.d/$service
2008-01-15 19:47:48 +00:00
Mike Frysinger
6aab712cb4
strip trailing newlines
2008-01-14 05:05:22 +00:00
Roy Marples
87e4e4410c
Remove rc_service_plugable function and make it private as it needs to read from our config file.
2008-01-13 17:47:23 +00:00
Roy Marples
abde759d5b
Re-indent to a standard tw of 8.
2008-01-11 15:51:40 +00:00
Roy Marples
43d0f3fc76
rc_getline keeps expanding it's malloced buffer until it has read a whole line or EOF. All functions which read into static buffers have been changed to use fhis function to avoid any potential overflows and to ensure we really do read a long long config line.
2008-01-07 12:29:30 +00:00
Roy Marples
16a2c82bd1
We should check we resolved a service before stating it's existance.
2008-01-06 21:06:47 +00:00