Commit Graph
100 Commits
Author SHA1 Message Date
William Hubbs 0b5cb3abcb version 0.47 2023-04-18 00:14:28 -05:00
William Hubbs f6ed2c660c update news 2023-04-18 00:13:16 -05:00
William Hubbs b9241988a7 init.d/rc.conf: make unicode default to yes 2023-03-07 00:48:43 -06:00
William Hubbs 0b86c06c3c update cirrus ci to latest FreeBSD images 2023-01-24 11:32:11 -06:00
William Hubbs 9ef74594df version 0.46 2023-01-05 00:31:37 -06:00
William Hubbs 59e9637647 update news 2023-01-05 00:22:41 -06:00
William Hubbs 02b064a591 src/swclock: make the reference file a required argument 2022-12-08 09:56:50 -06:00
William Hubbs 839083bb52 make the location of the swclock reference file configurable
This fixes #565.
2022-12-08 09:56:40 -06:00
William Hubbs 9b08de926b Revert "start-stop-daemon: use vfork to avoid races"
This is broken, so revert it and reopen #532.

This reverts commit 9e5ce59a21.
2022-09-02 17:27:39 -05:00
William Hubbs 3cc4c01485 remove trailing space 2022-06-28 17:21:54 -05:00
William Hubbs 414f398498 modules.in: always return 0, make loading more verbose 2022-06-27 17:32:42 -05:00
William Hubbs 107b23819d restore the init symlink for sysvinit mode
This symlink got lost in the transition to meson.

X-Gentoo-Bug: 850754
X-Gentoo-Bug-URL: https://bugs.gentoo.org/850754
2022-06-10 10:28:57 -05:00
William Hubbs d2b3144070 clean up hostname service script
- use _ throw-away variable to get rid of a shellcheck warning
- remove tests for /etc/hostname and just try to read it
- drop reference to bash HOSTNAME variable.
- make source of host name more accurate

X-Gentoo-Bug: 850577
X-Gentoo-Bug-URL: https://bugs.gentoo.org/850577
2022-06-08 13:40:29 -05:00
William Hubbs cddb29507d version 0.45 2022-06-07 18:04:20 -05:00
William Hubbs 399200e248 add note about seedrng to news 2022-06-07 17:43:24 -05:00
William Hubbs ffa7443395 update news 2022-06-07 12:41:01 -05:00
William Hubbs 6c773fb4d0 drop changelog
Currently, I do not have a way to generate this since we moved to a
meson-based build.
2022-06-06 23:34:38 -05:00
William Hubbs 98d2b43a7b cirrus: drop FreeBSD 11 and 12.2, add FreeBSD 12.3 2022-05-08 19:00:00 -05:00
William Hubbs 5ffa1c7fd7 librc: fix resource leaks 2022-05-08 17:10:44 -05:00
William Hubbs b5f713124b seedrng: initialize seed_dir 2022-04-20 20:49:47 -05:00
William Hubbs c0f5586743 seedrng: more improvements
- drop initialization of some variables.
- use eerrorx where possible
- drop final cleanup instructions
2022-04-20 20:38:03 -05:00
William Hubbs fdfa6dbb0e rewrite tests (#515)
* rewrite tests to work with meson

This ports our tests to meson and makes them able to be run in parallel.

* add tests to ci

* rewrite test/check-trailing-newlines in bash

This test was using a GNU sed command which does not work on Alpine Linux.
2022-04-16 15:13:08 -05:00
William Hubbs 0b3f8750e7 openrc-shutdown: remove rc- prefix from file names 2022-04-09 22:54:03 -05:00
William Hubbs 82e5478d0e start-stop-daemon: remove rc-prefix from file names 2022-04-07 11:18:56 -05:00
William Hubbs 391d12db48 migrate fully to meson build system
- drop old build system
- move shared include and source files to common directory
- drop "rc-" prefix from shared include and source files
- move executable-specific code to individual directories under src
- adjust top-level .gitignore file for new build system

This closes #489.
2022-04-06 10:51:55 -05:00
William Hubbs 96b0c695d9 init.d/urandom.in: drop the use of the psz variable
Since this service is now *bsd only, we don't need to worry about
reading this value from /proc/sys.
2022-03-30 22:08:10 -05:00
William Hubbs 0fb11190fa add seedrng service for Linux
This moves urandom to *bsd only and adds seedrng as a separate service
for Linux.

This fixes #510
2022-03-30 22:07:35 -05:00
William Hubbs df18158e60 seedrng.c: multiple cleanups
This fixes #508.
2022-03-30 13:59:32 -05:00
William Hubbs 0f8fe2a6cb define the pam directory at the top level 2021-12-31 11:01:55 -06:00
William Hubbs 29477075c8 remove a tab 2021-12-31 10:56:42 -06:00
William Hubbs 5e9797035b fix libkvm dependency for *bsd 2021-12-30 18:45:39 -06:00
William Hubbs c045d33a40 fix filename in FreeBSD meson build 2021-12-30 18:41:38 -06:00
William Hubbs ffa2e06043 use meson in cirrus ci 2021-12-30 18:37:19 -06:00
William Hubbs 21d81ea5a9 build: always add subdirs 2021-12-30 12:17:47 -06:00
William Hubbs fd70988587 remove separate pam directory 2021-12-29 19:04:06 -06:00
William Hubbs cab458e27a build: rename sh_dir variable to rc_shdir 2021-12-29 15:57:04 -06:00
William Hubbs 32aeb7407b remove extra file 2021-12-12 19:19:20 -06:00
William Hubbs 0eb11e7db6 killprocs: add kill_delay setting
This allows containers using OpenRC based services to be configured to
allow open tcp connections to be closed before they are shut down.

This fixes #476.
2021-12-07 13:40:15 -06:00
William Hubbs 331d6f14fd support/init.d.examples: Do not use @PKG_PREFIX@ in service examples
I can't think of a reason to do this since these scripts are just
examples.

This is for #474.
2021-11-28 23:55:42 -06:00
William Hubbs cc0037e9ca build: set rootprefix_default to /usr if on a /usr merged system
This requires at leaste meson 0.53.0 since it uses the fs module.

This is for #474.
2021-11-28 12:35:29 -06:00
William Hubbs d21fabca02 openrc-init: fix build for selinux
X-Gentoo-Bug: 821520
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=821520
2021-11-12 22:03:43 -06:00
William Hubbs 9d4f11f726 build: pam fix
Set the HAVE_PAM option if the dependency is found *and* pam is
requested.

X-Gentoo-Bug: 821211
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=821211
2021-11-06 19:37:37 -05:00
William Hubbs 3908687559 fix permission of installed version file 2021-10-15 23:17:26 -05:00
William Hubbs 2b55ac719a separate github actions based on OS
This fixes #466.
2021-10-09 14:14:41 -05:00
William Hubbs 785726d67d selinux build fix 2021-10-08 19:51:05 -05:00
William Hubbs 1033909f0e fix bug in pam build tests 2021-10-08 16:39:21 -05:00
William Hubbs 5a5ede3156 support older pam versions
Some distros are still using versions of pam which do not create
*.pc files, so we need fallback logic for that situation.
2021-10-08 10:46:42 -05:00
William Hubbs 6b9a5b8271 fix build for selinux 2021-10-04 13:13:35 -05:00
William Hubbs bfa634493d build: fix pam and pam_misc dependencies
Pam generates pkgconfig files now, so meson can use them to find the pam
dependencies.
2021-10-02 16:10:45 -05:00
William Hubbs a4d4d390be move rc_bindir and rc_sbindir definitions to the top level 2021-09-21 12:34:22 -05:00
William Hubbs d07572e1b7 build: fix rootprefix
This fixes #438.
2021-09-21 10:26:57 -05:00
William Hubbs 2ee9d92599 link runscript with audit 2021-09-18 17:02:32 -05:00
William Hubbs b877ef24c4 link openrc-run with audit and libpam_misc 2021-09-18 16:25:15 -05:00
William Hubbs a25ccbd8f2 build: install pam files 2021-09-08 15:05:46 -05:00
William Hubbs 8807e954c4 meson: typo fix 2021-09-08 14:47:20 -05:00
William Hubbs 4aa5a89ee0 build: fix sysvinit script installation 2021-09-08 13:28:29 -05:00
William Hubbs 46a0bfedd1 build: fix symlinks 2021-09-08 11:59:38 -05:00
William Hubbs 803aa1c637 version 0.44 2021-09-07 16:16:51 -05:00
William Hubbs fb186a3867 update ChangeLog 2021-09-07 16:14:08 -05:00
William Hubbs c9b64b64fa update README 2021-09-07 16:13:35 -05:00
William Hubbs 9cce9f8ce8 news typo fix 2021-09-07 15:59:19 -05:00
William Hubbs 5a41f1ef20 add discussion about removing old build system to NEWS 2021-09-07 14:17:44 -05:00
William Hubbs 6e3afc29f3 update NEWS 2021-09-07 13:31:16 -05:00
William Hubbs 7c29fbd36f build: install bash and zsh completions 2021-09-07 12:45:53 -05:00
William Hubbs 593be166d1 build: fix libexecdir 2021-09-06 18:52:54 -05:00
William Hubbs ca0270967c tools/meson_final.sh: typo fix 2021-09-06 18:37:11 -05:00
William Hubbs 3a187f88f4 build: typo fix 2021-09-06 16:04:46 -05:00
William Hubbs f2362cc277 build: add split-usr option 2021-09-06 15:22:28 -05:00
William Hubbs 444e44eb9d build: change root_prefix to rootprefix 2021-09-06 14:30:30 -05:00
William Hubbs c0f8313164 sync meson build version with makefiles 2021-09-05 20:04:55 -05:00
William Hubbs d6622a1156 add meson build files
Closes #116.
Closes #171.
Closes #172.
Closes #175.
2021-09-04 16:01:29 -05:00
William Hubbs 92004a2ed6 README: add note about github discussions 2021-09-04 14:23:18 -05:00
William Hubbs 7cedc4942b update travis ci irc notifications
- move to libera network
- always notify on successful build
2021-08-14 15:05:07 -05:00
William Hubbs 091cd8015f man/supervise-daemon.8: document --pidfile option 2021-08-13 23:08:07 -05:00
William Hubbs b5e4c2c2db Revert "openrc-init: ignore an empty string in argv[1]"
This reverts commit dec9ef200b.
This check is no longer needed since rc_runlevel_exists() is fixed.

    X-Gentoo-Bug: 803536
    X-Gentoo-Bug-URL: https://bugs.gentoo.org/803536
    Closes: https://github.com/OpenRC/openrc/pull/431
2021-08-13 10:46:57 -05:00
William Hubbs 0a97bad6c9 librc: fix rc_runlevel_exists return for empty string
This function should return false if the runlevel is an empty string.

    X-Gentoo-Bug: 803536
    X-Gentoo-Bug-URL: https://bugs.gentoo.org/803536
    Closes: https://github.com/OpenRC/openrc/pull/431
2021-08-13 10:28:44 -05:00
William Hubbs 7f47539fb1 sh/rc-cgroup.sh: fix case in starting message
X-Gentoo-Bug: 804193
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=804193
2021-08-12 14:23:34 -05:00
William Hubbs 9c7bedca9e sh/rc-cgroup.sh: fix cgroup_cleanup
X-Gentoo-Bug: 804193
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=804193
2021-08-12 14:21:58 -05:00
William Hubbs 1d282ddc80 move the irc channel to the libera network 2021-05-23 16:45:32 -05:00
William Hubbs 791322d7fa checkpath: fix code to walk the directory path
X-Gentoo-Bug: 782808
X-Gentoo-Bug-URL: https://bugs.gentoo.org/782808
2021-04-15 17:40:00 -05:00
William Hubbs 63db2d99e7 checkpath: remove extra slashes from paths
This fixes #418.
2021-04-13 17:13:25 -05:00
William Hubbs 8400e7d302 style fix 2021-04-13 16:29:21 -05:00
William Hubbs 533a8c70b3 cgroup2_set_limits: fix harmless error message
In legacy cgroups mode, we were running `mountinfo -q ""` which was
generating an error message. If we return immediately when
cgroup2_find_path returns an empty value, we avoid this message.
2021-04-04 17:31:49 -05:00
William Hubbs 852a3c86f6 NEWNET.md: fix the title 2021-04-03 15:18:30 -05:00
William Hubbs b3e8072403 rename README.newnet to a markdown file
All of our documentation is in markdown, so rename this file to be
consistent.
2021-04-03 15:14:35 -05:00
William Hubbs b7c03dea27 README: convert references to markdown links 2021-04-03 15:13:09 -05:00
William Hubbs ee05403c50 version 0.43 2021-04-02 12:47:39 -05:00
William Hubbs c1558abb0f update ChangeLog 2021-04-02 12:43:37 -05:00
William Hubbs 901b752463 README: force references to be on separate lines for github 2021-04-02 12:35:29 -05:00
William Hubbs c88368b792 update news
This adds a note about SHLIBDIR being dropped from the makefiles.
2021-04-02 11:37:35 -05:00
William Hubbs bfffe2c585 drop reference to gentoo bugzilla
OpenRC has a bug tracker on github, so ask people to file issues there.
2021-03-29 12:55:04 -05:00
William Hubbs 5f890ee8ab init.sh: rework the /run setup for linux xystems
- fix mount options for /run.
- run restorecon after everything is set up.

X-Gentoo-Bug: 740576
X-Gentoo-Bug-URL: https://bugs.gentoo.org/740576
2021-03-22 15:47:21 -05:00
William Hubbs ef76a663bc stop namespaced services with specified pids
The previous fix excludes PIDs of processes running in a different namespace
regardless of whether the PID has been explicitly stored in a PID file mentioned
in the --pidfile parameter.  The correct behavior is to only exclude the pid if
it is not stored in a pidfile.

X-Gentoo-Bug: 776010
X-Gentoo-Bug-URL: https://bugs.gentoo.org/776010
2021-03-22 11:34:41 -05:00
William Hubbs fccd37c34c add PKGCONFIGDIR to the makefiles
This allows pkgconfig files to be stored in /usr even if PREFIX is /.
2021-03-21 17:41:58 -05:00
William Hubbs 5058b6668c drop shlibdir
I know of no other build systems that have separate paths for static vs
shared libraries, so this changes ours to use libdir for all libraries.
2021-03-21 17:20:25 -05:00
William Hubbs 08d518b7fe rc_cgroup.sh: do not add newline when writing group2 values
Fixes: #407
2021-03-15 16:59:43 -05:00
William Hubbs de77674663 rc-cgroup.sh: avoid process substitution for cgroup_get_pids
This should make cgroup_cleanup work successfully since cgroup_get_pids
no longer uses a subshell.

This fixes #396.
This fixes #397.
2021-03-01 14:21:24 -06:00
William Hubbs 4fb4674374 fix unified cgroups v2 setup
The cgroups v2 setup required the rc_cgroups_controllers variable
to be set to the list of controllers to enable regardless of whether the
mode was hybrid or unified.

This makes sense for hybrid mode since the controllers can't be in both
the cgroups v1 and v2 hierarchies, but for unified mode we should enable
all controllers that are configured in the kernel.
2021-02-23 23:08:56 -06:00
William Hubbs 12ee72a9b3 allow devfs to run on lxc
X-Gentoo-Bug: 761918
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=761918
Closes #272.
2021-01-28 12:32:09 -06:00
William Hubbs 170ce2624a typo fix 2021-01-05 17:11:01 -06:00