Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Service manager OpenBSD on rccl     - Ubuntu disable graphics card (Linux)

- CentOS6.6 ordinary users to use sudo command to borrow root user privileges (Linux)

- Using RAID in Linux: Create a RAID 5 (Linux)

- PHP parsing algorithm of the interview questions (Programming)

- PSUADE installation under Linux (Linux)

- Git version rollback (Linux)

- Elixir: the future of programming languages (Programming)

- Installation Mesos + Marathon + Zookeeper under CentOS 7 (Server)

- Linux process group, session daemon (Linux)

- Object-C in the preparation of multi-parameter function parameter is omitted (Programming)

- Ubuntu 14.04 Fixed update information is outdated error (Linux)

- Redis Design and Implementation study notes (Database)

- Linux account related documents Interpretation (Linux)

- Use Spring cache and ehcache (Programming)

- Linux add a new hard disk (Linux)

- ORA-00600 error solve one case (Database)

- Ubuntu 10.10 install Oracle 10g graphic tutorials (Database)

- Ubuntu system safe and caution sudo su command (Linux)

- Linux Nginx installation and configuration instructions (Server)

- CentOS 6.5 dual card configuration, one of the external network, a local area network connection (Linux)

 
         
  Service manager OpenBSD on rccl
     
  Add Date : 2016-05-29      
         
         
         
  Rcctl is a background process (daemon) on OpenBSD systems management procedures, similar chkconfig or new RedHat Linux on the systemctl previous functionality.

It is actually a shell script, first seen in OpenBSD 5.7. You need to have root privileges to use.
Its principle is the process by setting the appropriate configuration file in /etc/rc.conf.local to complete. The process needs to be managed in /etc/rc.d/ directory corresponding control script files.

The main functions and examples

(The following is mainly based on rcctl translation of manuals from the man, and I together with some examples. Willing friends can read your man manual)

Enable or disable background processes (including system processes such as httpd comes through the package installation process as well as mysqld / nginx, etc., the same below)

rcctl enable httpd ## enabled
rcctl disable httpd ## disabled

Start or stop the daemon

rcctl start httpd
rcctl stop httpd

May also need to pass -d (Open debug) or -f (force) parameters

Lists the parameters related to the process

# Rcctl get httpd
httpd_class = daemon
httpd_flags =
httpd_timeout = 30
httpd_user = root

Lists default process parameters

# Rcctl getdef httpd
httpd_class = daemon
httpd_flags =
httpd_timeout = 30
httpd_user = root

If you have not modified the default parameters, then it and get sub-command output should be the same

List processes that meet specific criteria

rcctl ls $ con

Lists the qualifying process. Here condition is not customizable, you can only choose from the following a few key words:

                  all all services and daemons ## all services and processes
                  faulty enabled but stopped daemons ## enabled but failed to start services and processes
                  off disabled services and daemons ## disabled services and processes
                  on enabled services and daemons ## enabled services and processes
                  started running daemons ## has started the process of
                  stopped stopped daemons ## process has been stopped

# Rcctl ls faulty
httpd
ntpd

Here httpd and ntpd two processes have been activated, but failed to start (means that administrators have work to do).

Adjustment process in order pkg_scripts
pkg_scripts This variable is used to control the progress of the installation from the package. More than one process, we sometimes need to adjust their order.

rcctl order d ## d to move to the specified process first:
Before rcctl order d d1 d2 ## d to move to the specified process d1 and d2
rcctl order ## are listed in the current order

Set process parameters

rcctl set httpd status on ## and should be rcctl enable httpd functionality is the same, I have not found differences between the two
rcctl set ntpd flags -s ## ntpd set of flags parameter '-s'
     
         
         
         
  More:      
 
- Oracle 11G R2 DataGuard structures (Database)
- Ubuntu users to install Gnome-Pie 0.6.5 (Linux)
- Python2.7.7 source code analysis (Programming)
- Java reflection technology explain (Programming)
- C ++ overloaded stream insertion operator and the stream extraction operator (Programming)
- Redis is installed in Ubuntu 14.04 (Database)
- iOS Sensor Development - add to APP phone password, fingerprint security authentication (Programming)
- Calling Qt libraries to implement functional processes of some summary (Programming)
- How to deploy Python Web application: Heroku deployment process complete records (Server)
- Security Knowledge: redirection command application security (Linux)
- Ubuntu 14.10 Install Ubuntu Touch Music App 2.0 (Linux)
- Share and show your code on GitHub (Linux)
- Bubble Sort Algorithms (Programming)
- Use smartmontools view the health status of hard disk (Linux)
- Java, extends and implements Usage (Programming)
- Oracle 11g Export guide problem not an empty table (Database)
- Lua and C ++ (Programming)
- Linux common network tools: batch scanning of nmap hosting service (Linux)
- The SVN installation, configuration and start - up under Linux (CentOS 6.5) (Server)
- Linux boot the system does not display a progress bar setting method (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.