Skip to contentSkip to conversation

xinetd: add Init Script Actions to xinetd script

PATCH New [email protected] 1 participant 1 message Sep 13, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xinetd: add Init Script Actions to xinetd script

From: Shan Hai <[email protected]>

The chkconfig fails to list the xinetd service because the xinetd lacks Init Script Actions in it, add the actions to fix it.

---
 meta/recipes-extended/xinetd/xinetd/xinetd.init | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
meta/recipes-extended/xinetd/xinetd/xinetd.init +11 -1
index 777c2c8..a021410 100644
@@ -1,5 +1,15 @@
 #!/bin/sh
-#
+### BEGIN INIT INFO
+# Provides:          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 xinetd daemon.
+### END INIT INFO
+
 # /etc/init.d/xinetd  --  script to start and stop xinetd.
 
 # Source function library.
Signature · 1 line
2.8.1