????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.191 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/etc/init.d/ |
Upload File : |
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: openbsd-inetd
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop the inetd daemon.
### END INIT INFO
DAEMON=/usr/sbin/inetd
[ -x $DAEMON -a -e /etc/inetd.conf ] || exit 0
[ -e /etc/default/openbsd-inetd ] && . /etc/default/openbsd-inetd
. /lib/lsb/init-functions
checkportmap () {
if ! grep -v -s "^ *#" /etc/inetd.conf | grep -q -s 'rpc/'; then
return 0
fi
if [ ! -x /usr/bin/rpcinfo ]; then
log_action_msg "WARNING: rpcinfo not available - RPC services may be unavailable!"
log_action_msg " (Commenting out the rpc services in inetd.conf will"
log_action_msg " disable this message)"
elif ! /usr/bin/rpcinfo -u localhost portmapper >/dev/null 2>&1; then
log_action_msg "WARNING: portmapper inactive - RPC services unavailable!"
log_action_msg " (Commenting out the rpc services in inetd.conf will"
log_action_msg " disable this message)"
fi
}
checknoservices () {
if ! grep -q "^[[:alnum:]/]" /etc/inetd.conf; then
log_action_msg "Not starting internet superserver: no services enabled"
exit 0
fi
}
case "$1" in
start)
checknoservices
checkportmap
log_daemon_msg "Starting internet superserver" "inetd"
start-stop-daemon --start --quiet --pidfile /var/run/inetd.pid \
--oknodo --exec $DAEMON -- $OPTIONS
log_end_msg 0
;;
stop)
log_daemon_msg "Stopping internet superserver" "inetd"
start-stop-daemon --stop --quiet --pidfile /var/run/inetd.pid \
--oknodo
log_end_msg 0
;;
reload|force-reload)
log_daemon_msg "Reloading internet superserver" "inetd"
start-stop-daemon --stop --quiet --pidfile /var/run/inetd.pid \
--oknodo --signal 1
log_end_msg 0
;;
restart)
checkportmap
log_daemon_msg "Restarting internet superserver" "inetd"
start-stop-daemon --stop --quiet --pidfile /var/run/inetd.pid \
--oknodo
checknoservices
sleep 1
start-stop-daemon --start --quiet --pidfile /var/run/inetd.pid \
--exec $DAEMON -- $OPTIONS
log_end_msg 0
;;
status)
status_of_proc -p /var/run/inetd.pid $DAEMON inetd && exit 0 || exit $?
;;
*)
echo "Usage: /etc/init.d/openbsd-inetd {start|stop|reload|force-reload|restart|status}"
exit 2
;;
esac
exit 0