source:
hybrid/branches/releng-9.0/nanobsd/files/etc/rc.subr-nanobsd.patch@
10694
Last change on this file since 10694 was 10648, checked in by , 13 years ago | |
---|---|
File size: 1.4 KB |
-
rc.subr
# # Add ${name}_setfib functionality to rc.subr #
old new 499 499 # 500 500 # ${name}_nice n Nice level to run ${command} at. 501 501 # 502 # ${name}_setfib n Routing table for ${command} to use. Requires 503 # kernel with options ROUTETABLES=<nr> compiled. 504 # 505 # 502 506 # ${name}_user n User to run ${command} as, using su(1) if not 503 507 # using ${name}_chroot. 504 508 # Requires /usr to be mounted. … … 675 679 fi 676 680 eval _chdir=\$${name}_chdir _chroot=\$${name}_chroot \ 677 681 _nice=\$${name}_nice _user=\$${name}_user \ 678 _group=\$${name}_group _groups=\$${name}_groups 682 _group=\$${name}_group _groups=\$${name}_groups \ 683 _setfib=\$${name}_setfib 679 684 680 685 if [ -n "$_user" ]; then # unset $_user if running as that user 681 686 if [ "$_user" = "$(eval $IDCMD)" ]; then … … 755 760 check_startmsgs && echo "Starting ${name}." 756 761 if [ -n "$_chroot" ]; then 757 762 _doit="\ 763 ${_setfib:+setfib -F $_setfib }\ 758 764 ${_nice:+nice -n $_nice }\ 759 765 chroot ${_user:+-u $_user }${_group:+-g $_group }${_groups:+-G $_groups }\ 760 766 $_chroot $command $rc_flags $command_args" … … 771 777 fi 772 778 _doit="nice -n $_nice $_doit" 773 779 fi 780 if [ -n "$_setfib" ]; then 781 _doit="setfib -F $_setfib $_doit" 782 fi 774 783 fi 775 784 776 785 # run the full command
Note:
See TracBrowser
for help on using the repository browser.