Tuesday, 26 January 2016

make xinetd work from systemd

How to run xinetd with systemd


Create this file  in /lib/systemd/system and name it as xinetd.service

---------- cut here -----------------
[Unit]
Description=xinetd super daemon
After=syslog.target network.target

[Service]
Type=forking
ExecStart=/usr/sbin/xinetd  -pidfile /var/run/xinetd.pid
StandardOutput=syslog
StandardError=syslog
KillMode=process
PIDFile=/var/run/xinetd.pid


[Install]
WantedBy=multi-user.target
---------- cut here -----------------

Run these commands

systemctl enable xinetd.service

Thats all ! you are ready to go !

No comments:

Post a Comment