Questions tagged [xinetd]
Extended Internet Services daemon, which starts internet protocols such as FTP or telnet as needed
63
questions
0
votes
1
answer
92
views
bash script user input with xinetd
Doing some exercises / tutorials with xinetd. I setup the script below as a xinetd controlled service.
#!/bin/bash
str1="password"
printf 'Hello...'
printf '%(%Y-%m-%d)T\n' -1
# Prompt for ...
1
vote
1
answer
84
views
Ruby Script fails while invoked via xinetd
This is my first post on stack overflow and it's a bummer, so please bear with me.
I have a ruby script which has worked flawlessly for years on an Ubuntu 14.04 Server.
I set up a new Ubuntu 22.04 ...
0
votes
0
answers
92
views
Telnet/ssh server that runs a nodejs script in interactive mode
I've been using Ink (https://github.com/vadimdemedes/ink) to create a simple nodejs cli tool using React. Currently all it does is ask some questions and then displays a response. I'd like to create a ...
2
votes
0
answers
148
views
Can Windows Service be started by incoming TCP connection?
I'd like to make a small Windows Service, that would be shutdown most of the time, but would be automatically activated when incoming TCP (REST?) connection comes. I do not want the service to be ...
0
votes
1
answer
291
views
Nagios nrpe plugin install on remote host
On Centos7, following nrpe plugin install steps, when testing the connection between the Nagios server and the remote agent, I got this error...
/usr/local/nagios/libexec/check_nrpe -H 192.168.50.5
...
-1
votes
1
answer
57
views
xinetd server return value is not readable [closed]
I have enabled all xinetd services and I am calling it from the c program. Everything works fine but when I call the time service, it returns 4 bytes value that is unreadable. Following is one sample ...
0
votes
1
answer
136
views
Is xinetd configurable on HP-UX and AIX?
I know inetd is available on HP-UX and AIX.
on Linux, inetd is available for kernel 2.x and below, and xinetd is available for 3.x and higher.
On HP-UX and AIX, xinetd has no way to install or use.
...
1
vote
1
answer
117
views
XINETD Cannot Launch NSCA Daemon Unless XINETD Started Via Command Line
I have configured xinetd to launch NSCA when a connection on port 5667 is made.
I can start xinetd by command line as root and things work correctly:
/usr/sbin/xinetd -stayalive -pidfile /var/run/...
0
votes
0
answers
985
views
haproxy with xinetd shows warning: can't get client address: Connection reset by peer
I have followed this tutorial to setup a HAProxy server with a Galera clustering of 2 MariaDB servers; therefore, HAProxy, frontend and backend are working well except I got this warning message below....
0
votes
1
answer
86
views
php xinetd UDP socket - fwrite STDOUT errno 89
I've a simple xINETd UDP service written in PHP - basicly acting as a proxy -, but when I try to write back the answer with fwrite(STDOUT, $ans); I'm getting an interesting error:
PHP Notice: fwrite(...
0
votes
1
answer
2k
views
Systemctl: Argument list too long
I'm running Centos 7 and need to install a check_mk agent to get machine stats. I have successfully installed the agent in many others Centos 7 of the same cluster through an rpm package but with the ...
3
votes
1
answer
1k
views
Xinetd error service/protocol combination not in /etc/services
Trying to create a simple xinetd style server without needing to create a full service first. I have the following file which is located at /etc/xinetd.d/myscript:
service tester
{
disable = ...
0
votes
0
answers
223
views
Debugging xinetd services with GDB
I have a xinetd service that runs an executable on client requests.
I want to debug executable.
How to do this in smart way?
0
votes
1
answer
560
views
How to Obtain IP Address of Connected Client in xinetd Custom Service
Question:
xinetd (extended Internet services daemon) maps input to a service's standard input and output to a service's standard out.
In other words, assuming a custom TCP service written in C, data ...
0
votes
2
answers
872
views
How to create a service that will respond to an HTTP request by running a bash script and returning the output?
I have a DO loadbalancer setup in front of a MySQL Group Replication setup. What I need to do is create a health check for the loadbalancer via an http request.
What I've come up with so far is to ...
0
votes
1
answer
1k
views
Xinetd server connection refused
I'm using xinetd on Fedora.
I put a file called telnet inside the etc/xinetd.d folder with the following content:
service telnet
{
disable = yes
id = telnet
socket_type = stream
...
2
votes
1
answer
346
views
Can't see echo output of shell script using xinetd
I've created a simple shell script named /usr/sbin/helloworld
#!/bin/bash
echo "Hello World"
mkdir ~/itran
read -p "Say Hello : " hello
echo "$hello"
exit 0
I created /etc/xinetd.d/testservice-map ...
1
vote
0
answers
497
views
Python "jail" no output over xinetd
I'm trying out an insecure Python "jail" I found somewhere, when I run it locally and and execute it, it works fine. However, when I create a xinetd service for it, I can netcat to it, it does seem to ...
1
vote
1
answer
2k
views
xinetd service calls python script (doesn't execute properly)
I read this:
You can use xinetd to add a service starting your python script. The standard input and output will be transmitted over the network on desired port, so you do not need to modify your ...
1
vote
0
answers
260
views
Are there any known Linux inetd/"wait"-capable web servers with graceful idle shutdown?
I would like to start a web server on-demand as an inetd "tcp/wait" service which shuts itself down after a programmable period of inactivity.
Many web servers already support inetd "tcp/nowait" mode,...
0
votes
0
answers
475
views
What is the relationship between xinetd and mysql?
My mariadb was can not start up, and there are the part of the logs:
Aug 16 15:52:19 ha-node1 xinetd[1523]: EXIT: mysqlchk signal=13 pid=12120 duration=0(sec)
Aug 16 15:52:21 ha-node1 xinetd[1523]: ...
2
votes
2
answers
1k
views
How do you get xinetd to work with wait=yes for protocol=tcp
I have a service which will listen on port 8443 after it is launched.
I have xinetd configured to start my service when a connection is made on port 8443.
So Xinetd should launch my application and ...
0
votes
1
answer
173
views
prevent output from script in xinetd service
I have a bash script that starts Xvnc after doing some other processing, and it's launched from a xinetd service. However the script indirectly outputs some text to stdout and stderr, which gets sent ...
1
vote
0
answers
115
views
xinetd TCP remote host passed as server arg
Is there a way to pass TCP remote host as a server arg in xinetd?
It's rather painful to try and strip it out of syslog or journald
0
votes
2
answers
779
views
puppet notify xinetd doesn't reload xinetd service
I’m trying to install check_mk agent with the standard check_mk xinetd config file via puppet on a Debian 7 server.
Check_mk installs without a problem but I've got an issue with the xinetd config.
...
0
votes
2
answers
566
views
MySQL login-path issues with clustercheck script used in xinetd
default: on
# description: mysqlchk
service mysqlchk
{
# this is a config for xinetd, place it in /etc/xinetd.d/
disable = no
flags = REUSE
socket_type = ...
0
votes
2
answers
319
views
TCP server that serves unix time
Is there a way through bash/nc/xinetd/nginx clever trickery to run a TCP server that only output Unix time then disconnect?
A client connects to the TCP server, and server outputs the unix time in ...
1
vote
1
answer
3k
views
UDP port forwarding using xinetd
I was looking for an answer on my question on google and also here, but a didn't find a proper answer.
So here is the context:
I have a software running on some server (without firewall) in one ...
0
votes
1
answer
457
views
Raspbmc Dropbear not using provided cmdline arguments
I have a raspbmc running on my rPi. Already configured to use ssh keys but I want to disable the password login option entirely.
I have added the -s option in the /etc/default/dropbear:
# any ...
0
votes
1
answer
272
views
Running script over SSH works. But over xinetd or after switching user it wont work
im running a 7Days to Die server.
Usually i connect via ssh with user "linux" and run the command:
/home/linux/start
This works, server is running.
But when i switch user to root (su root) and run:
...
0
votes
1
answer
788
views
xrdp with sesman for port redirection
I am using xrdp in Centos.
1) in /etc/xrdp/xrdp.ini I set the port to -1
[xrdp1]
name=sesman-Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=-1
This is ok. I can login with my user ...
1
vote
1
answer
2k
views
xinetd / netcat - redirecting stdin/stdout
I have a simple xinetd controlled script that wraps the simple Java application that listens on the given port. As xinetd talks via stdin/stdout, I would like to use netcat to redirect the traffic to/...
1
vote
0
answers
244
views
How make a perl script quit or end when the client connection to xinetd terminates?
I have a perl script which uses blocking IO (sysread and syswrite).
This script is connected to a xinetd server listening on a TCP port.
I Heard that xinetd puts a SIGHUP when client disconnects, so ...
0
votes
1
answer
305
views
How to get a core dump from a service started by xinetd on Ubuntu Precise
I want to debug a service which fails with SIGPIPE. So I installed a a signal handler for SIGPIPE and called abort() in it in order to get a core dump.
But I get none. I've set sysctl -w kernel....
7
votes
1
answer
3k
views
Pass Arguments to Bash Script when xinetd receive message via udp
i was wondering if its possible to pass args to a bash script when xinetd receive a command from a random host (in lan) via udp. To clearify: when i send e.g. hello from a random client to the xinetd ...
0
votes
1
answer
81
views
Does xinetd preserve data integrity?
Background info:
I have a page written in php that sends data to another server, like so:
$url = "example=data&to=show&the=format&im=using";
$client = stream_socket_client("<IP ...
1
vote
0
answers
55
views
Why does lchown() always fail on group in root process via xinetd?
I have a C++ application that summons a server on another machine via the xinetd service on Linux Centos5 64 bit. The summoned process is invoked as root, but I think it may be a root that does not ...
1
vote
1
answer
141
views
Bash: An IF statement returns unexpected value, can you find the reason?
I've wrote a script which automatically downloads and installs Nagios NRPE on CentOS machines.
The relevant portion of the script is:
read -r -p "How would you like to configure the NRPE daemon? [X]...
0
votes
1
answer
12k
views
tftp logging to a separate file
I would like to log all TFTP server logging messages (and only those) to a separate log file. I'm using xinetd (extended Internet daemon) in Linux to provide a TFTP server. I tried adding
log_type ...
0
votes
1
answer
99
views
How does inetd know which process to send incoming data to?
I'm trying to replace a inetd/xinetd service by a standalone one.
What is the simplest I can do this? Is there some standard code to get started?
2
votes
1
answer
5k
views
Firebird Classic server on Ubuntu 13.10 listen to remote connections
I've installed Firebird Classic on Ubuntu (13.10) and I need to open it to remote connections. netstat -an on port 3050 shows this:
tcp 0 0 127.0.0.1:3050 0.0.0.0:* ...
1
vote
2
answers
838
views
Using xinetd/inetd, why should servers call fflush()?
All program on xinetd (which I've read) call fflush().
Why?
For example, Inetd-Wikipedia
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
const char *fn = argv[...
1
vote
2
answers
10k
views
Port forwarding with xinetd
I want to forward xinetd connection to another local port (say 12345). I based my solution on CentOS/Redhat documentation Chapter 17. TCP Wrappers and xinetd, article 17.4.3.3. In the example the ...
16
votes
2
answers
4k
views
Haskell default io buffering
Yesterday I wrote a little xinetd exercise for my students: make a reverse echo program.
To learn something new, I tried to implement a Haskell solution. The trivial main = forever $ interact reverse ...
0
votes
1
answer
208
views
OSX and CVSROOT
I am using on a computer OS X Mountain Lion 10.8.5 server. I want to configure CVS on it so that other computers can use that repository later.
Can someone explain me ho to configure and start ...
-1
votes
1
answer
299
views
xinetd cannot nmap echo server remotely
I've configured xinetd and I want to access echo service remotely. The point is, when y do:
nmap localhost
it appears
PORT STATE SERVICE
7/tcp open echo
But when i make
nmap [remote IP]...
1
vote
1
answer
970
views
How does (x)inetd "split" its connected socket into STDIN/STDOUT/STDERR?
I presume that (x)inetd works like most daemons, in that when it accept()s a connection on a port it's monitoring, a socket is created. Somehow, though, before it fork()s and exec()s the target ...
0
votes
0
answers
296
views
xinetd - unable to write to a file
Running CentOS. xinetd.d/clhtest entry is as follows:
service clhtest
{
disable = no
port = 8020
socket_type = stream
...
1
vote
0
answers
218
views
Is it possible to warp multi tcp connection to single server process with xinetd?
I'm using a script on my server side to encrypt my tcp data (source here), but I'm not use it that much and not want it always running and keep using cpu/memory, so I want to use xinetd to solve my ...
1
vote
1
answer
785
views
how to open daytime service on mac using launchctl?
well, there is solution on internet to linux's daytime service startup.
But I can not find solution to Mac.
I don't know if I should find the executable of daytime first, and then write a .plist file, ...