From 244a91a090e2abb6dcbaa83f1d69f5c3107e969d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 20 Nov 2006 16:37:00 +0000 Subject: [PATCH] * Fix status/stop commands. svn path=/nixpkgs/trunk/; revision=7080 --- pkgs/os-specific/linux/upstart/cfgdir.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkgs/os-specific/linux/upstart/cfgdir.patch b/pkgs/os-specific/linux/upstart/cfgdir.patch index dbdcb62e1e95..2a29b36412c0 100644 --- a/pkgs/os-specific/linux/upstart/cfgdir.patch +++ b/pkgs/os-specific/linux/upstart/cfgdir.patch @@ -26,3 +26,20 @@ diff -rc upstart-0.3.0-orig/init/main.c upstart-0.3.0/init/main.c /* Generate and run the startup event or read the state from the +diff -rc upstart-0.3.0-orig/util/initctl.c upstart-0.3.0/util/initctl.c +*** upstart-0.3.0-orig/util/initctl.c 2006-10-13 16:18:06.000000000 +0200 +--- upstart-0.3.0/util/initctl.c 2006-11-20 16:53:21.000000000 +0100 +*************** +*** 95,105 **** + } else if (! strcmp (command->command, "stop")) { + msg.type = UPSTART_JOB_STOP; + msg.job_stop.name = *arg; +- break; + } else if (! strcmp (command->command, "status")) { + msg.type = UPSTART_JOB_QUERY; + msg.job_stop.name = *arg; +- break; + } + + /* Send the message */ +--- 95,103 ----