aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Add dnctl rc.d serviceGoran Mekic14 days1-1/+2
| | | | | | | | As PF now also supports dummynet but can not configure it on its own, the service which configures pipes, queues and schedulers is needed. Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D37451
* othermta: remove leftover from 20 years agoBaptiste Daroussin2022-11-141-4/+0
| | | | | | | | othermta (along with mta_start_script configuration entry in rc.conf) was a mechanism used to be able to run another mta than sendmail(8) before "rcng" time 20 years ago. othermta has not been used since.
* rc(8): Add a zpoolupgrade rc.d scriptLi-Wen Hsu2022-11-071-0/+1
| | | | | | | | | | | If a zpool is created by makefs(8), its version is 5000, i.e., all feature flags are off. Introduce an rc script to run `zpool upgrade` over the assigned zpools on the first boot. This is useful to the ZFS based VM images built from release(7). Reviewed by: imp, markj, mav Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37282
* libexec/rc: Add var_run rc scriptCy Schubert2022-09-051-0/+1
| | | | | | | | | | | | | | | | | | Users with a tmpfs /var/run will lose the directory tree state of /var/run at reboot. This rc script will optionally (by default) capture the state of the directory structure in /var/run prior to shutdown and recreate it at system boot. Alternatively a user can save the state of the /var/run directories manually using service var_run save and disable the autosaving of /var/run state using the var_run_autosave variable, for those paranoid SSD users. PR: 259585, 259699 Reported by: freebsd@walstatt-de.de, Reviewed by: philip, gbe (previous version) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D36386
* rc: Add a zpoolreguid rc.d scriptMark Johnston2022-05-301-0/+1
| | | | | | | | | | | | | | | | If one boots up multiple copies of a template VM image containing a zpool, the pool GUIDs will be identical, making it impossible to, e.g., share datasets between them. This diff introduces a simple workaround for the problem: one can use the script to, upon first boot, assign a new GUID to one or more zpools. This will be useful when building ZFS-based VM images from release(7). Reviewed by: mav, allanjude, asomers Reviewed by: Pau Amma (docs) MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35336
* Add ggated rc scriptAlan Somers2022-02-281-0/+1
| | | | | | Reviewed by: asomers, peterj Submitted by: Johannes Totz <jo@bruelltuete.com> Differential Revision: https://reviews.freebsd.org/D31709
* Revert "wpa: Import wpa_supplicant/hostapd commit 14ab4a816"Cy Schubert2021-12-021-0/+1
| | | | | | | | This reverts commit 266f97b5e9a7958e365e78288616a459b40d924a, reversing changes made to a10253cffea84c0c980a36ba6776b00ed96c3e3b. A mismerge of a merge to catch up to main resulted in files being committed which should not have been.
* wpa: Import wpa_supplicant/hostapd commit 14ab4a816Cy Schubert2021-12-021-1/+0
| | | | | | This is the November update to vendor/wpa committed upstream 2021-11-26. MFC after: 1 month
* rc: Hook zfskeys to the buildMateusz Piotrowski2021-12-021-0/+1
| | | | | | | | Reviewed by: allanjude Approved by: allanjude (src) MFC after: 3 days Sponsored by: Modirum MDPay Differential Revision: https://reviews.freebsd.org/D33230
* Retire synchronous PPP kernel driver sppp(4).Gleb Smirnoff2021-10-221-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The last two drivers that required sppp are cp(4) and ce(4). These devices are still produced and can be purchased at Cronyx <http://cronyx.ru/hardware/wan.html>. Since Roman Kurakin <rik@FreeBSD.org> has quit them, they no longer support FreeBSD officially. Later they have dropped support for Linux drivers to. As of mid-2020 they don't even have a developer to maintain their Windows driver. However, their support verbally told me that they could provide aid to a FreeBSD developer with documentaion in case if there appears a new customer for their devices. These drivers have a feature to not use sppp(4) and create an interface, but instead expose the device as netgraph(4) node. Then, you can attach ng_ppp(4) with help of ports/net/mpd5 on top of the node and get your synchronous PPP. Alternatively you can attach ng_frame_relay(4) or ng_cisco(4) for HDLC. Actually, last time I used cp(4) back in 2004, using netgraph(4) instead of sppp(4) was already the right way to do. Thus, remove the sppp(4) related part of the drivers and enable by default the negraph(4) part. Further maintenance of these drivers in the tree shouldn't be a big deal. While doing that, remove some cruft and enable cp(4) compilation on amd64. The ce(4) for some unknown reason marks its internal DDK functions with __attribute__ fastcall, which most likely is safe to remove, but without hardware I'm not going to do that, so ce(4) remains i386-only. Reviewed by: emaste, imp, donner Differential Revision: https://reviews.freebsd.org/D32590 See also: https://reviews.freebsd.org/D23928
* Fix gssd rc.d installationEmmanuel Vadot2021-09-271-1/+1
| | | | | | | CONFGROUPS needs to be in CAPS Fixes: a30235a4c360 ("pkgbase: Create a FreeBSD-kerberos package") Reported by: kp
* pkgbase: Create a FreeBSD-kerberos packageEmmanuel Vadot2021-09-071-1/+6
| | | | | | | This allows users to install or not kerberos related utilities and libs. Differential Revision: https://reviews.freebsd.org/D31801
* rc.d: liberate powerd from ACPI dependencyAndriy Gapon2021-06-091-4/+1
| | | | | | | | For instance, many non-ACPI ARM systems have CPU power / frequency levels. Discussed with: manu MFC after: 1 week
* rc.d: connect sysctl_lastloadEugene Grosbein2021-05-201-0/+1
| | | | Add recently added sysctl_lastload.
* rc: remove the 'addswap' script.Edward Tomasz Napierala2021-04-261-1/+0
| | | | | | | It's been unused since 268a55bc98b. Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D29749
* rc: remove the 'archdep' scriptEdward Tomasz Napierala2021-04-121-1/+0
| | | | | | | | | | | | | | | | | It was unused since 405c3050f10, which removed iBCS support. This also moves the 'linux' rc script slightly earlier, which might help in some setups. The original version of this patch moved it even more, before 'mountcritlocal', which would fixe mount(8) errors due to missing /dev/shm in setups with entries for /path/to/chroot/dev/shm without the "late" flag; however, in the end 'kldxref' turned out to depend on 'mountcritlocal' anyway. Reported By: pstef Reviewed By: dchagin Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D29590
* nfs-over-tls: add rc scripts for rpc.tlsclntd and rpc.tlsservdRick Macklem2021-02-181-0/+4
| | | | | | | | | Add rc.d scripts that control the recently committed rpc.tlsclntd(8) and rpc.tlsservd(8) daemons. Reviewed by: gbe MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D28432
* pkgbase: Put the last rc files in the rc packageEmmanuel Vadot2021-01-041-0/+2
| | | | | Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D27718
* As of r364746 (OpenZFS import) existing ZPOOLs are not importedCy Schubert2020-08-261-0/+1
| | | | | | | | | | | | | | | | | | prior to zvol and mountcritlocal resulting in ZVOLs (swap and virtual machine UFS filesystems) being unavailable, leading to boot failures. We move the zpool import from zfs to a new zpool script, with the -N option to avoid mounting datasets while making the ZPOOL's datasets available for "legacy" mount (mountpoint=legacy) and ZVOLs available for subsequent use for swap (in the zvol rc sript) or for UFS or other filesystems in fstab(5), mounted by mountcritlocal. Reviewed by: freqlabs (previous version) Differential Revision: https://reviews.freebsd.org/D26185 Notes: svn path=/head/; revision=364817
* Due to popular demand, revert r360102.Cy Schubert2020-04-191-7/+4
| | | | | | | Reported by: many Notes: svn path=/head/; revision=360106
* Conditionally install Kerberos rc files based on MK_KERBEROS_SCRIPTSCy Schubert2020-04-191-4/+7
| | | | | | | | | | | | | | instead of MK_KERBEROS. The reason for this change is some users prefer to build FreeBSD WITHOUT_KERBEROS, wanting to retain the Kerberos rc scripts to start/stop MIT Kerberos or Heimdal from ports. PR: 197337 Reported by: Adam McDougall <ebay at looksharp.net> Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D24252 Notes: svn path=/head/; revision=360102
* Revert r359294 per manu's requestBaptiste Daroussin2020-03-251-61/+48
| | | | | | | | | It breaks etcupdate Reported by: cy Notes: svn path=/head/; revision=359296
* pkgbase: Stop threating rc files as config filesEmmanuel Vadot2020-03-251-48/+61
| | | | | | | | | | | | rc scripts arent configuration files so use FILES instead of CONFS. While here put rc scripts into related package (sendmail in the FreeBSD-sendmail package, wpa_supplicant in the FreeBSD-wpa etc ...) Reviewed by: bapt, emaste Differential Revision: https://reviews.freebsd.org/D24177 Notes: svn path=/head/; revision=359294
* Remove /etc/host.conf, which was automatically generated fromHiroki Sato2020-03-181-1/+0
| | | | | | | | | | | nsswitch.conf for backward compatibility. This file was used over 19 years ago, before introducing nsdispatch() in the name-service lookup APIs. MFC after: 3 days Notes: svn path=/head/; revision=359068
* retire amd(8)Ed Maste2020-03-091-6/+0
| | | | | | | | | | | | | | autofs was introduced with FreeBSD 10.1 and is the supported method for automounting filesystems. As of r296194 the amd man page claimed that it is deprecated. Remove it from base now; the sysutils/am-utils port is still available if necessary. Discussed with: cy Relnotes: Yes Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=358821
* Create /etc/os-release file.Warner Losh2019-11-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | Each boot, regenerate /var/run/os-release based on the currently running system. Create a /etc/os-release symlink pointing to this file (so that this doesn't create a new reason /etc can not be mounted read-only). This is compatible with what other systems do and is what the sysutil/os-release port attempted to do, but in an incomplete way. Linux, Solaris and DragonFly all implement this natively as well. The complete standard can be found at https://www.freedesktop.org/software/systemd/man/os-release.html Moving this to the base solves both the non-standard location problem with the port, as well as the lack of update of this file on system update. Bump __FreeBSD_version to 1300060 PR: 238953 Differential Revision: https://reviews.freebsd.org/D22271 Notes: svn path=/head/; revision=354922
* Rename etc/rc.d/abi to etc/rc.d/linux; after moving out the SysV IPC stuffEdward Tomasz Napierala2019-10-021-1/+1
| | | | | | | | | | | | it's entirely linux-specific. Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D21830 Notes: svn path=/head/; revision=352999
* Move the SysV IPC stuff out of the 'abi' rc script, into a new one:Edward Tomasz Napierala2019-09-281-0/+1
| | | | | | | | | | | | | | 'sysvipc' - it has nothing to do with ABIs, and I'd like to later rename 'abi' to 'linux', which better describes its purpose and also matches the rcvar name. Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D21615 Notes: svn path=/head/; revision=352836
* pkgbase: Move rc scripts and related files to their own packagesEmmanuel Vadot2019-09-051-2/+1
| | | | | | | | | | | | It doesn't need to be in runtime and might help people who want to experiment with other rc system or don't use one (like in small embedded mfsroot). Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21499 Notes: svn path=/head/; revision=351851
* pkgbase: Add a FreeBSD-bluetooth packageEmmanuel Vadot2019-07-191-10/+8
| | | | | | | | | | | | | Move the bluetooth related files from FreeBSD-runtime to a new package named FreeBSD-bluetooth The FreeBSD runtime is only intended to have everything for a working FreeBSD installation and bluetooth isn't needed for that. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D20959 Notes: svn path=/head/; revision=350132
* pkgbase: Remove etc/zfs from being packagedEmmanuel Vadot2019-05-231-3/+0
| | | | | | | | | | This is an empty directory and it cause a FreeBSD-zfs package to be created when we don't need one. Reviewed by: bapt Notes: svn path=/head/; revision=348150
* From r345400, connect ippool to the build/install.Cy Schubert2019-03-221-1/+2
| | | | | | | | | PR: 218433 MFC after: 2 weeks X-MFC with: r345400 Notes: svn path=/head/; revision=345401
* Fix still installing ipfilter rc.d files even when WITHOUT_IPFILTERCy Schubert2019-03-121-4/+7
| | | | | | | | | | | | | | | | is specified. When WITHOUT_IPFILTER is specified, delete-old-files fails to delete the optional rc.d files from above. Fix this. WITHOUT_IPFILTER fails to delete the ipfilter.5 optional file during delete-old-files. Fix this. Reported by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 1 week Notes: svn path=/head/; revision=345079
* Conditionally install /etc/rc.d/audit* based on ${MK_AUDIT}Alan Somers2018-12-161-2/+6
| | | | | | | | | | | | | /usr/sbin/audit(dist)?d are only installed if ${MK_AUDIT} == yes. Their supporting scripts should only be installed in those instances as well. Submitted by: ngie Reviewed by: emaste MFC after: 2 weeks Pull Request: https://github.com/freebsd/freebsd/pull/242 Notes: svn path=/head/; revision=342153
* Remove, the now very outdated, timed.George V. Neville-Neil2018-12-151-4/+0
| | | | | | | | | | Submitted by: Kyle Spiers ksspiers at gmail Reviewed by: bcr,brooks,bz,sbruno Relnotes: yes Differential Revision: https://reviews.freebsd.org/D18505 Notes: svn path=/head/; revision=342139
* While preparing to move init(8) to its own package as indicatedBjoern A. Zeeb2018-10-181-1/+1
| | | | | | | | | | | | | | | | | | | in r339413, a current pkgbase update problem came up. For users testing pkgbase at the moment there is no (automatic) way to pick up new base packages (yet). As a result rather than also moving init(8) to its own package, back out the part of the change in r339413 that moved rc* to its own package and defer creating new packages until the infrastructure is in place to handle these cases. Both init and rc* are considered too problematic to be lost by early adaptors at this stage. Discussed with: brd Reviewed by: brd Approved by: re (gjb) Notes: svn path=/head/; revision=339417
* Move the rc framework out of sbin/init into libexec/rc.Bjoern A. Zeeb2018-10-171-0/+335
The reasons for this are forward looking to pkgbase: * /sbin/init is a special binary; try not to replace it with every package update because an rc script was touched. (a follow-up commit will make init its own package) * having rc in its own place will allow more easy replacement of the rc framework with alternatives, such as openrc. Discussed with: brd (during BSDCam), kmoore Requested by: cem, bz PR: 231522 Approved by: re (gjb) Notes: svn path=/head/; revision=339413