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 !
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