From owner-freebsd-doc@FreeBSD.ORG Sat Jan 26 06:29:31 2013 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0C262F5E for ; Sat, 26 Jan 2013 06:29:31 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by mx1.freebsd.org (Postfix) with ESMTP id 43134173 for ; Sat, 26 Jan 2013 06:29:29 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id m4so1858904lbo.0 for ; Fri, 25 Jan 2013 22:29:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=iT1rwEYI7x6CDDJFPVypBXev4zSFGw/bSnB9AZGrhNY=; b=AxmHhbSJu6yuoXS0syX8jU1xVQUG+0A36i4BuYE518ya1HAZdnkr+Sqep+0KC0oRYB Q+CZhGucccUlL8SVp+L7xMryZ/BrVhzDFYtz9Pw05+n2yhuO0jup5Ii2wbn1hagqc4K7 haM+G9sRHKTGPcGNNLsU24Pl4JjDqRVEcEvYE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:x-gm-message-state; bh=iT1rwEYI7x6CDDJFPVypBXev4zSFGw/bSnB9AZGrhNY=; b=UtOwb0twrn2wDVueOslCExCzMVpThgC7BCtVvqUjlsWOlGB1inGiDPNx+TYef/U0eG 8YZKCvn9/SStMSPP8wkpMjLJS/KrHW322UbJkz6ZIfnPu42CN3XxAaZOsAuB7JryEykK dXjJTLj10Zf0nf4kb+FLZDWKnaBgZpvKlpE3aOin4pR/+qFJI/hxoDNcTmZMt+MhmJPS 2OS38DfWN/cf+h1NpphlAgBHqPKMepGFUyb1DqZZCTB/RTkYKTQono0QpOyoZzlvcFCI l1TUEQrfSwbG0RVp1cSaVfwaAw3cqTCSUTzLovG9n6LFmWVsvUoK61vGoffZqVtSDIpn nwPg== X-Received: by 10.112.51.175 with SMTP id l15mr3061103lbo.5.1359181766819; Fri, 25 Jan 2013 22:29:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.100.164 with HTTP; Fri, 25 Jan 2013 22:28:56 -0800 (PST) In-Reply-To: References: From: Eitan Adler Date: Sat, 26 Jan 2013 01:28:56 -0500 Message-ID: Subject: Re: explicit use of /etc/rc.d vs service To: Benjamin Kaduk Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQlWeiAxnXQDnyUv2BOWHmQjbWX6in9UxNHPqT5fqdxAY8VY6ZRMea8l7xjm1gO7krSjMEr3 Cc: freebsd-doc@freebsd.org X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2013 06:29:31 -0000 On 25 January 2013 12:33, Benjamin Kaduk wrote: > On Thu, 24 Jan 2013, Eitan Adler wrote: > These '???'s would be less likely to leak into your actual commits if they > were only added once received... This would break a lot of my workflows (git log --grep and git filter-branch) > This is not correct. It is the gbde start-up script which is relevant; that > script is located in /etc/rc.d/gbde. service(8) does not come into play. Thanks for going through all these - I won't common on each individual one - just fix them. > The commit message only mentions one place where a .sh suffix was stripped; > there are two here. Forgot about these. Commit message fixed. The command: >> - &prompt.root; /etc/rc.d/inetd >> rcvar >> + &prompt.root; service inetd >> rcvar > > Wow, that's an uncommon command to pass to service! It seemed to work. Keeping it. > Ahem. :-\ > I am less excited than you about removing mention of rc.d in this case than > you are, but not enough so so as to object to it. I would prefer to see service(8) be the interface and rc.d be a mere implementation detail. > Hmm, maybe this block and the previous should use a more identical wording. Explain? ==== Version 2 ==== This is mostly the same as above with corrections for the issues noted above. ============== commit 87f317a1a7971f66c3c0f0ce15c240047de0c422 Author: Eitan Adler Date: Thu Jan 24 12:26:10 2013 -0500 Prefer the use of service(1) to explicit invocation of /etc/rc.d scripts: service(1) puts things in one place and abstracts them. Also, it's less typing and easier to autocomplete. While here modernize script examples by removing the ".sh" suffix. Discussed on: -doc Reviewed by: ??? Approved by: ??? (mentor) diff --git a/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml b/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml index dd1680c..82c190a 100644 --- a/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml @@ -1206,7 +1206,7 @@ ifconfig_wlan0="DHCP" At this point, you are ready to bring up the wireless interface: - &prompt.root; /etc/rc.d/netif start + &prompt.root; service netif start Once the interface is running, use ifconfig to see the status of the @@ -1323,7 +1323,7 @@ ifconfig_wlan0="WPA DHCP" Then we can bring up the interface: - &prompt.root; /etc/rc.d/netif start + &prompt.root; service netif start Starting wpa_supplicant. DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5 DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6 @@ -1513,10 +1513,9 @@ wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 wlans_ath0="wlan0" ifconfig_wlan0="WPA DHCP" - The next step is to bring up the interface with the - help of the rc.d facility: + The next step is to bring up the interface: - &prompt.root; /etc/rc.d/netif start + &prompt.root; service netif start Starting wpa_supplicant. DHCPREQUEST on wlan0 to 255.255.255.255 port 67 interval 7 DHCPREQUEST on wlan0 to 255.255.255.255 port 67 interval 15 @@ -1607,7 +1606,7 @@ ifconfig_wlan0="WPA DHCP" The next step is to bring up the interface: - &prompt.root; /etc/rc.d/netif start + &prompt.root; service netif start Starting wpa_supplicant. DHCPREQUEST on wlan0 to 255.255.255.255 port 67 interval 7 DHCPREQUEST on wlan0 to 255.255.255.255 port 67 interval 15 @@ -1719,7 +1718,7 @@ ifconfig_wlan0="WPA DHCP" Then we can bring up the interface: - &prompt.root; /etc/rc.d/netif start + &prompt.root; service netif start Starting wpa_supplicant. DHCPREQUEST on wlan0 to 255.255.255.255 port 67 interval 7 DHCPREQUEST on wlan0 to 255.255.255.255 port 67 interval 15 @@ -2090,7 +2089,7 @@ wpa_pairwise=CCMP TKIP The next step is to start hostapd: - &prompt.root; /etc/rc.d/hostapd forcestart + &prompt.root; service hostapd forcestart &prompt.root; ifconfig wlan0 wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2290 @@ -2330,13 +2329,13 @@ ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3, wMaxPacketSize=49, nframes=6, buffer size=294 - The /etc/rc.d/bluetooth script + &man.service.8; is used to start and stop the Bluetooth stack. It is a good idea to stop the stack before unplugging the device, but it is not (usually) fatal. When starting the stack, you will receive output similar to the following: - &prompt.root; /etc/rc.d/bluetooth start ubt0 + &prompt.root; service bluetooth start ubt0 BD_ADDR: 00:02:72:00:d4:1a Features: 0xff 0xff 0xf 00 00 00 00 00 <3-Slot> <5-Slot> <Encryption> <Slot offset> @@ -2687,7 +2686,7 @@ Bluetooth Profile Descriptor List: Then the sdpd daemon can be started with: - &prompt.root; /etc/rc.d/sdpd start + &prompt.root; service sdpd start The local server application that wants to provide Bluetooth service to the remote clients will register service @@ -4169,7 +4168,7 @@ margaux:ha=0123456789ab:tc=.def100 /etc/rc.conf file for this command to execute correctly: - &prompt.root; /etc/rc.d/inetd restart + &prompt.root; service inetd restart @@ -4208,7 +4207,7 @@ margaux:ha=0123456789ab:tc=.def100 /etc/rc.conf at the first step, you probably want to reboot instead. - &prompt.root; /etc/rc.d/mountd restart + &prompt.root; service mountd restart @@ -4442,7 +4441,7 @@ cd /usr/src/etc; make distribution Restart the NFS server: - &prompt.root; /etc/rc.d/nfsd restart + &prompt.root; service nfsd restart @@ -4460,7 +4459,7 @@ cd /usr/src/etc; make distribution Restart inetd: - &prompt.root; /etc/rc.d/inetd restart + &prompt.root; service inetd restart diff --git a/en_US.ISO8859-1/books/handbook/audit/chapter.xml b/en_US.ISO8859-1/books/handbook/audit/chapter.xml index 646fb9d..642ce69 100644 --- a/en_US.ISO8859-1/books/handbook/audit/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/audit/chapter.xml @@ -211,7 +211,7 @@ requirements. --> Audit support must then be started by a reboot, or by manually starting the audit daemon: - /etc/rc.d/auditd start + service auditd start diff --git a/en_US.ISO8859-1/books/handbook/config/chapter.xml b/en_US.ISO8859-1/books/handbook/config/chapter.xml index d710731..ef5d984 100644 --- a/en_US.ISO8859-1/books/handbook/config/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/config/chapter.xml @@ -679,7 +679,7 @@ HOME=/var/log For instance, &man.sshd.8; can be restarted with the following command: - &prompt.root; /etc/rc.d/sshd restart + &prompt.root; service sshd restart This procedure is similar for other services. Of course, services are usually started automatically at boot time as @@ -711,7 +711,7 @@ HOME=/var/log /etc/rc.conf setting, execute the following command: - &prompt.root; /etc/rc.d/sshd onerestart + &prompt.root; service sshd onerestart It is easy to check if a service is enabled in /etc/rc.conf by running the appropriate @@ -720,7 +720,7 @@ HOME=/var/log sshd is in fact enabled in /etc/rc.conf by running: - &prompt.root; /etc/rc.d/sshd rcvar + &prompt.root; service sshd rcvar # sshd $sshd_enable=YES @@ -734,7 +734,7 @@ $sshd_enable=YES option is available. For instance to verify that sshd is actually started: - &prompt.root; /etc/rc.d/sshd status + &prompt.root; service sshd status sshd is running as pid 433. In some cases it is also possible to @@ -1218,14 +1218,14 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP" - &prompt.root; /etc/rc.d/netif restart + &prompt.root; service netif restart If a default gateway has been set in /etc/rc.conf, use also this command: - &prompt.root; /etc/rc.d/routing restart + &prompt.root; service routing restart Once the networking system has been relaunched, you should diff --git a/en_US.ISO8859-1/books/handbook/disks/chapter.xml b/en_US.ISO8859-1/books/handbook/disks/chapter.xml index 176c7b2..48bbfdc 100644 --- a/en_US.ISO8859-1/books/handbook/disks/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/disks/chapter.xml @@ -3364,7 +3364,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on Now restart inetd: - &prompt.root; /etc/rc.d/inetd restart + &prompt.root; service inetd restart @@ -4422,7 +4422,7 @@ Device 1K-blocks Used Avail Capacity local disk, and start the &man.hastd.8; daemon: &prompt.root; hastctl create test -&prompt.root; /etc/rc.d/hastd onestart +&prompt.root; service hastd onestart It is not possible to use GEOM @@ -4554,7 +4554,7 @@ notify 30 { Restart &man.devd.8; on both nodes to put the new configuration into effect: - &prompt.root; /etc/rc.d/devd restart + &prompt.root; service devd restart When the carp0 interface goes up or down (i.e., the interface state changes), the system diff --git a/en_US.ISO8859-1/books/handbook/filesystems/chapter.xml b/en_US.ISO8859-1/books/handbook/filesystems/chapter.xml index c3eeb38..3602d92 100644 --- a/en_US.ISO8859-1/books/handbook/filesystems/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/filesystems/chapter.xml @@ -189,7 +189,7 @@ vfs.zfs.vdev.cache.size="5M" commands: &prompt.root; echo 'zfs_enable="YES"' >> /etc/rc.conf -&prompt.root; /etc/rc.d/zfs start +&prompt.root; service zfs start The remainder of this document assumes three SCSI disks are available, and their diff --git a/en_US.ISO8859-1/books/handbook/firewalls/chapter.xml b/en_US.ISO8859-1/books/handbook/firewalls/chapter.xml index 83c556e..72913cb 100644 --- a/en_US.ISO8859-1/books/handbook/firewalls/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/firewalls/chapter.xml @@ -249,7 +249,7 @@ Then run the startup script to load the module: - &prompt.root; /etc/rc.d/pf start + &prompt.root; service pf start Note that the PF Module will not load if it cannot find the ruleset config file. The default location is @@ -277,7 +277,7 @@ Then run the startup script to load the module: - &prompt.root; /etc/rc.d/pflog start + &prompt.root; service pflog start If you need other PF features you will need to compile PF support into the @@ -884,7 +884,7 @@ LOG_ERR - packets which have been logged and which can be considered shortTo activate the changes to /etc/syslog.conf you can reboot or bump the &man.syslogd.8; daemon into re-reading /etc/syslog.conf - by running /etc/rc.d/syslogd reload + by running service syslogd reload Do not forget to change /etc/newsyslog.conf to rotate the new diff --git a/en_US.ISO8859-1/books/handbook/jails/chapter.xml b/en_US.ISO8859-1/books/handbook/jails/chapter.xml index 71cf55c..0812972 100644 --- a/en_US.ISO8859-1/books/handbook/jails/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/jails/chapter.xml @@ -370,12 +370,12 @@ jail_www_devfs_ruleset="www_ruleset - The /etc/rc.d/jail script can be used to + &man.service.8; can be used to start or stop a jail by hand, if an entry for it exists in rc.conf: - &prompt.root; /etc/rc.d/jail start www -&prompt.root; /etc/rc.d/jail stop www + &prompt.root; service jail start www +&prompt.root; service jail stop www A clean way to shut down a &man.jail.8; is not available at the moment. This is because commands normally used to accomplish @@ -857,11 +857,11 @@ jail_www_devfs_enable="YES" In this phase, the jails are built and prepared to run. First, mount the required file systems for each - jail, and then start them using the - /etc/rc.d/jail script: + jail, and then start them using the jail rc + script. &prompt.root; mount -a -&prompt.root; /etc/rc.d/jail start +&prompt.root; service jail start @@ -933,7 +933,7 @@ jail_www_devfs_enable="YES" The right time to stop the jails is now: - &prompt.root; /etc/rc.d/jail stop + &prompt.root; service jail stop Unmount the original file systems: @@ -974,7 +974,7 @@ jail_www_devfs_enable="YES" start the jails: &prompt.root; mount -a -&prompt.root; /etc/rc.d/jail start +&prompt.root; service jail start diff --git a/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml b/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml index fcd7304..ee33ada 100644 --- a/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/linuxemu/chapter.xml @@ -656,7 +656,7 @@ done Start the license server. The following script, installed as - /usr/local/etc/rc.d/lmgrd.sh is a + /usr/local/rtc/rc.d/lmgrd is a convenient way to start up lmgrd: ----- snip ------------ @@ -843,7 +843,7 @@ FEATURE Maple maplelmg 2000.0831 permanent 1 XXXXXXXXXXXX \ Create a startup file at - /usr/local/etc/rc.d/flexlm.sh. The + /usr/local/etc/rc.d/flexlm. The example below is a modified version of the distributed $MATLAB/etc/rc.lm.glnx86. The changes are file locations, and startup of the license @@ -872,7 +872,7 @@ exit 0 The file must be made executable: - &prompt.root; chmod +x /usr/local/etc/rc.d/flexlm.sh + &prompt.root; chmod +x /usr/local/etc/rc.d/flexlm You must also replace username above with the name @@ -884,7 +884,7 @@ exit 0 Start the license manager with the command: - &prompt.root; /usr/local/etc/rc.d/flexlm.sh start + &prompt.root; service flexlm start diff --git a/en_US.ISO8859-1/books/handbook/mail/chapter.xml b/en_US.ISO8859-1/books/handbook/mail/chapter.xml index 12cd797..3c63bbd 100644 --- a/en_US.ISO8859-1/books/handbook/mail/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/mail/chapter.xml @@ -1589,7 +1589,7 @@ define(`confDELIVERY_MODE',`deferred')dnl and finally start the saslauthd daemon: - &prompt.root; /usr/local/etc/rc.d/saslauthd start + &prompt.root; service saslauthd start This daemon serves as a broker for sendmail to authenticate against your FreeBSD passwd diff --git a/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml b/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml index 6856ac9..578cf6f 100644 --- a/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml @@ -1578,7 +1578,7 @@ bktr0: Pinnacle/Miro TV, Philips SECAM tuner. Start the backend: &prompt.root; echo 'mythbackend_enable="YES"' >> /etc/rc.conf -&prompt.root; /usr/local/etc/rc.d/mythbackend start +&prompt.root; service mythbackend start diff --git a/en_US.ISO8859-1/books/handbook/network-servers/chapter.xml b/en_US.ISO8859-1/books/handbook/network-servers/chapter.xml index 4fc8598..4e608b1 100644 --- a/en_US.ISO8859-1/books/handbook/network-servers/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/network-servers/chapter.xml @@ -173,7 +173,7 @@ inetd starting at boot time. The command: - &prompt.root; /etc/rc.d/inetd rcvar + &prompt.root; service inetd rcvar can be run to display the current effective setting. @@ -272,7 +272,7 @@ Reloading the <application>inetd</application> Configuration File - &prompt.root; /etc/rc.d/inetd reload + &prompt.root; service inetd reload Each line of the configuration file specifies an @@ -805,7 +805,7 @@ mountd_flags="-r" or by invoking the mountd &man.rc.8; script with the appropriate parameter: - &prompt.root; /etc/rc.d/mountd onereload + &prompt.root; service mountd onereload Please refer to for more information about using rc scripts. @@ -872,8 +872,8 @@ rpc_statd_enable="YES" Start the application by using: - &prompt.root; /etc/rc.d/lockd start -&prompt.root; /etc/rc.d/statd start + &prompt.root; service lockd start +&prompt.root; service statd start If real locking between the NFS clients and NFS server is not required, it is @@ -1588,7 +1588,7 @@ Exports list on foobar: initializing the NIS maps, start the ypserv daemon manually: - &prompt.root; /etc/rc.d/ypserv start + &prompt.root; service ypserv start @@ -1875,7 +1875,7 @@ nis_client_enable="YES" following commands as the superuser: &prompt.root; /etc/netstart -&prompt.root; /etc/rc.d/ypbind start +&prompt.root; service ypbind start After completing these steps, you should be able to run ypcat passwd and see the NIS @@ -3009,7 +3009,7 @@ dhcpd_ifaces="dc0" Then, you can proceed to start the server by issuing the following command: - &prompt.root; /usr/local/etc/rc.d/isc-dhcpd start + &prompt.root; service isc-dhcpd start Should you need to make changes to the configuration of your server in the future, it is important to note that @@ -3380,7 +3380,7 @@ dhcpd_ifaces="dc0" To start the server one time with this configuration, use the following command: - &prompt.root; /etc/rc.d/named onestart + &prompt.root; service named onestart To ensure the named daemon is started at boot each time, put the following line into the @@ -4629,9 +4629,8 @@ $include Kexample.com.+005+nnnnn.ZSK.key ; ZSK The www/apache22 port installs an &man.rc.8; script to aid in starting, stopping, and restarting Apache, which can be - found in the /usr/local/etc/rc.d/ - directory. + found in /usr/local/etc/rc.d/. To launch Apache at system startup, add the following line to @@ -4653,8 +4652,6 @@ $include Kexample.com.+005+nnnnn.ZSK.key ; ZSK or by the &man.service.8; utility by issuing one of the following commands: - &prompt.root; /usr/local/etc/rc.d/apache22 configtest - &prompt.root; service apache22 configtest @@ -4667,10 +4664,7 @@ $include Kexample.com.+005+nnnnn.ZSK.key ; ZSK If Apache does not report configuration errors, the Apache httpd - can be started with the same &man.rc.8; and &man.service.8; - mechanisms: - - &prompt.root; /usr/local/etc/rc.d/apache22 start + can be started with &man.service.8;: &prompt.root; service apache22 start @@ -5095,7 +5089,7 @@ DocumentRoot /www/someotherdomain.tld manually by executing the following command as root: - &prompt.root; /etc/rc.d/ftpd start + &prompt.root; service ftpd start You can now log on to your FTP server by typing: @@ -5383,7 +5377,7 @@ DocumentRoot /www/someotherdomain.tld It is possible then to start Samba at any time by typing: - &prompt.root; /usr/local/etc/rc.d/samba start + &prompt.root; service samba start Starting SAMBA: removing stale tdbs : Starting nmbd. Starting smbd. @@ -5403,7 +5397,7 @@ Starting smbd. You can stop Samba at any time by typing : - &prompt.root; /usr/local/etc/rc.d/samba stop + &prompt.root; service samba stop Samba is a complex software suite with functionality that allows broad integration with @@ -5781,7 +5775,7 @@ syslogd_flags="-a logclient.example.com -v -v" At this point, the syslogd daemon should be restarted and verified: - &prompt.root; /etc/rc.d/syslogd restart + &prompt.root; service syslogd restart &prompt.root; pgrep syslog If a PID is returned, the server has @@ -5857,7 +5851,7 @@ syslogd_flags="-s -v -v" Once added, syslogd must be restarted for the changes to take effect: - &prompt.root; /etc/rc.d/syslogd restart + &prompt.root; service syslogd restart To test that log messages are being sent across the network, use &man.logger.1; on the client to send a message to @@ -5894,7 +5888,7 @@ syslogd_flags="-s -v -v" syslogd_flags="-d -a logclien.example.com -v -v" - &prompt.root; /etc/rc.d/syslogd restart + &prompt.root; service syslogd restart Debugging data similar to the following will flash on the screen immediately after the restart: @@ -5919,7 +5913,7 @@ rejected in rule 0 due to name mismatch. logclien. After the proper alterations are made, a restart is issued with expected results: - &prompt.root; /etc/rc.d/syslogd restart + &prompt.root; service syslogd restart logmsg: pri 56, flags 4, from logserv.example.com, msg syslogd: restart syslogd: restarted logmsg: pri 6, flags 4, from logserv.example.com, msg syslogd: kernel boot file is /boot/kernel/kernel diff --git a/en_US.ISO8859-1/books/handbook/ppp-and-slip/chapter.xml b/en_US.ISO8859-1/books/handbook/ppp-and-slip/chapter.xml index 24ea0b2..1a4caf5 100644 --- a/en_US.ISO8859-1/books/handbook/ppp-and-slip/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/ppp-and-slip/chapter.xml @@ -2953,7 +2953,7 @@ water.CS.Example localhost.Example. UGH 34 47641234 lo0 - 0.438 To apply the settings immediately you can execute the following command as root: - &prompt.root; /etc/rc.d/routing start + &prompt.root; service routing start Please refer to on Configuring the FreeBSD Kernel for help in diff --git a/en_US.ISO8859-1/books/handbook/security/chapter.xml b/en_US.ISO8859-1/books/handbook/security/chapter.xml index 5ebbb51..3cd5bd1 100644 --- a/en_US.ISO8859-1/books/handbook/security/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/security/chapter.xml @@ -1483,10 +1483,9 @@ Enter secret pass phrase: <secret password> qpopper : ALL : allow After adding this line, inetd - will need to be restarted. This can be accomplished by use of - the &man.kill.1; command, or with the - restart parameter with - /etc/rc.d/inetd. + will need to be restarted by using &man.service.8;: + + &prompt.root; service inetd restart @@ -1860,8 +1859,8 @@ Password: xxxxxxxx Verifying password - Password: xxxxxxxx Now it is time to start up the KDC - services. Run /etc/rc.d/kerberos start and - /etc/rc.d/kadmind start to bring up the + services. Run service kerberos start and + service kadmind start to bring up the services. Note that you will not have any kerberized daemons running at this point but you should be able to confirm that the KDC is functioning by obtaining and @@ -1985,7 +1984,7 @@ kadmin> exit example we will enable the telnet service by putting a line like this into your /etc/inetd.conf and then restarting the - &man.inetd.8; service with /etc/rc.d/inetd + &man.inetd.8; service with service inetd restart: telnet stream tcp nowait root /usr/libexec/telnetd telnetd -a user @@ -3209,10 +3208,10 @@ racoon_enable="yes" This will load &man.sshd.8;, the daemon program for OpenSSH, the next time your system initializes. Alternatively, it is possible to use - /etc/rc.d/sshd &man.rc.8; script to + &man.service.8; to start OpenSSH: - &prompt.root; /etc/rc.d/sshd start + &prompt.root; service sshd start @@ -3601,7 +3600,7 @@ user@unfirewalled-system.example.org's password: *******< /etc/ssh/sshd_config you must tell &man.sshd.8; to reload its config files, by running: - &prompt.root; /etc/rc.d/sshd reload + &prompt.root; service sshd reload diff --git a/en_US.ISO8859-1/books/handbook/virtualization/chapter.xml b/en_US.ISO8859-1/books/handbook/virtualization/chapter.xml index e9a0845..4d760b1 100644 --- a/en_US.ISO8859-1/books/handbook/virtualization/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/virtualization/chapter.xml @@ -1244,7 +1244,7 @@ add path 'usb/*' mode 0660 group operator Then, restart devfs: - &prompt.root; /etc/rc.d/devfs restart + &prompt.root; service devfs restart USB can now be enabled in the guest operating system. USB devices should be visible in the &virtualbox; @@ -1292,7 +1292,7 @@ add path 'usb/*' mode 0660 group operator perm xpt0 0660 perm pass* 0660 - &prompt.root; /etc/rc.d/devfs restart + &prompt.root; service devfs restart