⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 00readme.aix-src

📁 随机数算法
💻 AIX-SRC
字号:
Using 'prngd' With the AIX System Resource Controller (SRC)===========================================================The AIX System Resource Controller is a meta-daemon that lets you startand stop other daemons locally or remotely, tell them to reloadconfiguration files, etc.  It is accessed via the commands:  startsrc -s {subsys}		start a service  stopsrc -s {subsys}		stop a service  lssrc -s {subsys}		see if a service is running  refresh -s {subsys}		tell service to reload configurationEach subsystem is in a group.  You can operate on a whole group at onceusing '-g {group}' instead of '-s {subsys}'.To create a subsystem for prngd, I use the following:  mkssys -s prngd -p /usr/opt/sbin/prngd -a '-f /tmp/entropy' \         -u 0 -S -n 15 -f 9 -R -G localThe flags mean:  -s prngd	subsystem name  -p /usr/...	path to binary  -a '...'	command line arguments  -u 0		run as root  -S -n 15 -f 9	use signals for control: 15 for stop, 9 for force stop  -R		restart if it dies abnormally  -G local	group nameTo remove the subsystem:  rmssys -s prngdNote the group name -- this is arbitrary but I use 'local' for alllocally-installed SRC services.  That makes them easy to start on boot(see below) and easy to keep track of later.Note also that the command line must have '-f' in it, which tells prngdnot to daemonise itself.  SRC subsystems must run in the foreground sothe SRC can keep track of them, and do not need to do other daemonisingstuff either.  (Free clue for those wanting to use OpenSSH with prngd:to run sshd as an SRC subsystem, pass it '-F' for the same reason.)Now... how to start it on boot?  I do the following.  First, I have afile /etc/rc.local:  #!/bin/sh  #  # rc.local: start local services  # This used to be simply 'startsrc -g local'  # but prngd must come before sshd.    startsrc -s prngd  for sub in $(lssrc -g local | sed '1d; /prngd/d; s/    .*//'); do    startsrc -s $sub  doneIt must be executable.  Then I add a line to /etc/inittab:  local:2:wait:/etc/rc.local > /dev/console 2>&1That's it.Peter Samuelson<peter@cadcamlab.org>27 Jun 2002

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -