User Tools

Site Tools


aix:aix_subsys

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
aix:aix_subsys [2021/01/01 21:21]
127.0.0.1 external edit
aix:aix_subsys [2023/09/01 13:56] (current)
manu
Line 34: Line 34:
 <cli propmt='#'>​ <cli propmt='#'>​
 mkitab -i cron fkcmd:​2:​respawn:​startsrc -s fksubsys # start subsys via /​etc/​inittab mkitab -i cron fkcmd:​2:​respawn:​startsrc -s fksubsys # start subsys via /​etc/​inittab
 +</​cli>​
 +
 +Change the subsystem:
 +<cli>
 +chssys -s old_subsystem_name
 +        {[-s new_subsystem_name]
 +        [-t synonym_name]
 +        [-a command_arguments]
 +        [-p subsystem_path]
 +        [-u userid]
 +        [-i stdin]
 +        [-o stdout]
 +        [-e stderr]
 +        [-R | -O]
 +        [-d | -D]
 +        [-q | -Q]
 +        [{-I message_queue_key -m subsystem_mtype}
 +                | {-S -n signorm -f sigforce} | -K]
 +        [-E priority]
 +        [-G group_name]
 +        [-w wait_time] }
 </​cli>​ </​cli>​
  
Line 42: Line 63:
 </​cli>​ </​cli>​
  
 +Example of demon, for printer demon
 +<cli prompt='#'>​
 +[root@nim]/​root#​ odmget -q subsysname=lpd SRCsubsys
 +
 +SRCsubsys:
 +        subsysname = "​lpd"​
 +        synonym = ""​
 +        cmdargs = ""​
 +        path = "/​usr/​sbin/​lpd"​
 +        uid = 0
 +        auditid = 0
 +        standin = "/​dev/​console"​
 +        standout = "/​dev/​console"​
 +        standerr = "/​dev/​console"​
 +        action = 1
 +        multi = 0
 +        contact = 3
 +        svrkey = 0
 +        svrmtype = 0
 +        priority = 20
 +        signorm = 0
 +        sigforce = 0
 +        display = 1
 +        waittime = 20
 +        grpname = "​spooler"​
 +</​cli>​
 +
 +Redirect errors and standard output to /dev/null
 +<cli prompt='#'>​
 +[root@nim]/​root#​ chssys -s lpd -e "/​dev/​null" ​ -o "/​dev/​null"​
 +
 +0513-077 Subsystem has been changed.
 +[root@nim]/​root#​ odmget -q subsysname=lpd SRCsubsys
 +
 +SRCsubsys:
 +        subsysname = "​lpd"​
 +        synonym = ""​
 +        cmdargs = ""​
 +        path = "/​usr/​sbin/​lpd"​
 +        uid = 0
 +        auditid = 0
 +        standin = "/​dev/​console"​
 +        standout = "/​dev/​null"​
 +        standerr = "/​dev/​null"​
 +        action = 1
 +        multi = 0
 +        contact = 3
 +        svrkey = 0
 +        svrmtype = 0
 +        priority = 20
 +        signorm = 0
 +        sigforce = 0
 +        display = 1
 +        waittime = 20
 +        grpname = "​spooler"​
 +</​cli>​
 +
 +Then restart the demon (you can sometimes use refresh -s lpd)
 +<cli prompt='#'>​
 +[root@nim]/​root#​ stopsrc -s lpd ; startsrc -s lpd
 +</​cli>​
 +
 +To remove a subsystem, use
 +<cli prompt='#'>​
 +# rmssys -s Subsystem
 +</​cli>​
aix/aix_subsys.1609532518.txt.gz · Last modified: 2021/01/01 21:21 by 127.0.0.1