aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* don't gate ctl{d,adm} behind MK_ISCSILexi Winter8 days1-4/+4
| | | | | | | | These are no longer specific to iSCSI; always build them. Reviewed by: kevans, jhb Approved by: kevans (mentor) Differential Revision: https://reviews.freebsd.org/D50625
* packages: move ctl{d,stat,adm} to the ctl packageLexi Winter12 days1-3/+6
| | | | | | | | | This leaves the iscsi package for the iSCSI initiator, and the new package provides the CAM target layer (including the iSCSI target). Reviewed by: manu, des, jhb Approved by: des (mentor) Differential Revision: https://reviews.freebsd.org/D50287
* mountd, showmount: move to the nfs packageLexi Winter2025-05-051-4/+4
| | | | | | | | while here, alphabetise ${NFS}. Reviewed by: des, emaste, rmacklem Approved by: des (mentor) Differential Revision: https://reviews.freebsd.org/D50169
* rc.d: Add precious_machine rc.conf knob to create /var/run/noshutdownKonstantin Belousov2025-05-051-0/+1
| | | | | | | Reviewed by: bapt, kevans, olce Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D50166
* rpc.statd: move to nfs packageLexi Winter2025-05-051-2/+2
| | | | | | | | | | rpc.statd is not technically specific to NFS, but NFS is the only thing which has ever actually used it, so this is the most appropriate place to put it. Reviewed by: rmacklem, des, bapt, emaste Approved by: des (mentor) Differential Revision: https://reviews.freebsd.org/D50162
* rc.d: move some rc scripts to their packagesLexi Winter2025-05-051-56/+103
| | | | | | | | | | | | | | | | | several rc.d scripts are installed by the FreeBSD-rc package, but they don't work without their respective packages installed. move these rc scripts into the appropriate packages so they're installed along with the services they start. this should be undisruptive to users since the scripts don't work without those packages installed anyway. (for this reason, do not move the Kerberos scripts, because the MIT Kerberos port uses the base rc.d scripts.) PR: 282324 Reviewed by: manu, des, bapt Approved by: des (mentor) Differential Revision: https://reviews.freebsd.org/D50137
* rc.d: remove obsolete /etc/rc.d/keyservLexi Winter2025-05-031-4/+1
| | | | | | | | | | the keyserv daemon was removed in 9dcb984251b3. also remove its rc script. Reviewed by: kevans, adrian, emaste Approved by: kevans (mentor) Fixes: 9dcb984251b3 ("Remove publickey(5) stuff") Differential Revision: https://reviews.freebsd.org/D50135
* rc.d/opensm: Only install when MK_OFED_EXTRA is setMark Johnston2024-10-291-1/+1
| | | | | | | | | opensm itself is only installed when MK_OFED_EXTRA is set, so it only makes sense for the same to be true of the rc script. PR: 257646 Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D47313
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* Remove documentation of GBDE rc supportPoul-Henning Kamp2024-05-071-1/+0
|
* packages: add package for NTPLexi Winter2024-05-041-2/+4
| | | | | Reviewed by: imp, manu Pull Request: https://github.com/freebsd/freebsd-src/pull/1193
* package: move OpenBSM auditing into its own packageLexi Winter2024-04-291-1/+1
| | | | | | | | | | | Move auditing runtime (auditd, etc.) into the new FreeBSD-audit package. Also move the runtime OpenBSM manual pages from libbsm into auditd so they get installed with the right package. Add an UPDATING entry noting the new packages. Reviewed by: imp, manu Pull Request: https://github.com/freebsd/freebsd-src/pull/1197
* package: move cron into its own packageLexi Winter2024-04-231-1/+4
| | | | | Reviewed by: imp, manu, Mina Galic Pull Request: https://github.com/freebsd/freebsd-src/pull/1172
* package: move lpr into its own packageLexi Winter2024-04-191-1/+3
| | | | | Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1171
* nuageinit: add basic support for cloudinit.Baptiste Daroussin2024-03-151-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | this is a very early script to support cloudinit, it does not intend to be a full featured cloudinit client, but will support a good enough subset to be viable in most case. It support nocloud and openstack config-2 config drive mode (iso9660 or msdosfs) The following features are currently supported: - adding users (including a default user named 'freebsd' with password 'freebsd' - adding groups - adding ssh keys - static ipv4, static ipv6, dynamic ipv4 With this one is able to use the 'bring your own image feature" out of box. It is expected that the script grows the support of other clouds supporting cloud-init, contributions are welcomed. It is designed to be only run once via the firstboot mecanism. Sponsored by: OVHCloud MFC After: 3 weeks Differential Revision: https://reviews.freebsd.org/D44141
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* rc.d: Generate machine-id from hostid_saveTijl Coosemans2023-03-091-1/+0
| | | | | | | | | | | | | | | | rc.d/hostid_save saves a UUID generated by rc.d/hostid in /etc/hostid. Store the same UUID, without hyphens, in /etc/machine-id. The hypĥens are removed with a shell function because hostid_save runs before file systems are mounted so other tools may not be available yet. This eliminates some duplication between hostid and machine-id and for virtual machines machine-id now contains the UUID configured in the hypervisor like it does on Linux. Reviewed by: delphij Discussed with: bapt MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D38811
* pkgbase: Create a FreeBSD-console-tools packageEmmanuel Vadot2023-02-081-2/+4
| | | | | | | | | | | | | | | And put in it: - kbdcontrol - vidcontrol - moused - kbdmap Those aren't useful in a jail or for a modern desktop. While here, split the devd.conf part into some new files. Reviewed by: bapt Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D38321
* Revert "rc.d: Put growfs script in FreeBSD-ufs"Emmanuel Vadot2023-01-271-4/+2
| | | | | | | | The growfs script also support zfs. This reverts commit 36a7fa1e16a0b4446f2cb618fc84a6bc1a2cbf86. Reported by: emaste, Mina Galić
* rc.d: Put resolv script in FreeBSD-resolvconfEmmanuel Vadot2023-01-271-1/+4
| | | | Differential Revision: https://reviews.freebsd.org/D37190
* rc.d: Put growfs script in FreeBSD-ufsEmmanuel Vadot2023-01-271-2/+4
| | | | Differential Revision: https://reviews.freebsd.org/D37189
* rc.d: Put ggated script in FreeBSD-ggateEmmanuel Vadot2023-01-271-1/+4
| | | | Differential Revision: https://reviews.freebsd.org/D37188
* rc.d: Put dhclient script in FreeBSD-dhclientEmmanuel Vadot2023-01-271-1/+4
| | | | Differential Revision: https://reviews.freebsd.org/D37187
* rc.d: Put devmatch script in FreeBSD-devmatchEmmanuel Vadot2023-01-271-1/+4
| | | | Differential Revision: https://reviews.freebsd.org/D37192
* rc.d: Put devd script in FreeBSD-devd packageEmmanuel Vadot2023-01-271-1/+4
| | | | Differential Revision: https://reviews.freebsd.org/D37186
* growfs script: fixesMike Karels2022-12-261-0/+1
| | | | | | | Cannot use single quote in comment in awk script; add growfs_fstab to Makefile Fixes: 4a30d7bb373c,d670a8f7c596
* Add new rc: machine_id to generate /etc/machine-idTobias C. Berner2022-12-231-0/+1
| | | | | | | | | | | | | | | | | | | | | This new default-enabled rc will generate a /etc/machine-id file if it does not exist, and pre-fill it with a newly generated UUID of version 4 [2]. The file is generated in /var/db/machine-id and symlinked to /etc/machine-id to allow for read-only root partitions. This file is amongst other things used by libraries like GLib. Bump FreeBSD version 1400076 to be able to easily add support for older version of FreeBSD via a package. [1] Linux machine-id(5): https://www.man7.org/linux/man-pages/man5/machine-id.5.html [2] f176fe8e7f638e585afcd2f4dd52a522c4648f63 Approved by: bapt MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37722
* Add dnctl rc.d serviceGoran Mekic2022-11-221-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