I have a patch for the init script for 12.04 to allow a status check. How do I submit it?
Asked by
Simeon Berkley
In order to have configuration management tools like salt manage the keepalived service, the init script has to have a 'status' function. I've made a simple one and have a patch:
-snip-
--- keepalived 2013-07-23 12:23:33.931991938 -0500
+++ keepalived 2013-07-23 14:57:16.332302000 -0500
@@ -71,6 +71,10 @@
fi
;;
+ status)
+ status_of_proc -p /var/run/$NAME.pid "$DAEMON" keepalived
+ exit $?
+ ;;
*)
echo "Usage: /etc/init.d/$NAME {start|
exit 1
-snip-
Thanks,
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Simeon Berkley for more information if necessary.
To post a message you must log in.