Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
     5         kx #!/bin/sh
     5         kx # Start/stop/restart inetd, the BSD Internet super-daemon.
     5         kx 
     5         kx # Start inetd:
     5         kx inetd_start() {
     5         kx   if [ -x /usr/sbin/inetd ]; then
     5         kx     echo "Starting Internet super-server daemon:  /usr/sbin/inetd"
     5         kx     /usr/sbin/inetd
     5         kx   fi
     5         kx }
     5         kx 
     5         kx # Stop inetd:
     5         kx inetd_stop() {
     5         kx   killall inetd
     5         kx }
     5         kx 
     5         kx # Restart inetd:
     5         kx inetd_restart() {
     5         kx   inetd_stop
     5         kx   sleep 1
     5         kx   inetd_start
     5         kx }
     5         kx 
     5         kx case "$1" in
     5         kx 'start')
     5         kx   inetd_start
     5         kx   ;;
     5         kx 'stop')
     5         kx   inetd_stop
     5         kx   ;;
     5         kx 'restart')
     5         kx   inetd_restart
     5         kx   ;;
     5         kx *)
     5         kx   echo "usage $0 start|stop|restart"
     5         kx esac