chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix service file to match installed elogind binary location
[elogind.git]
/
src
/
sleep
/
sleep.c
diff --git
a/src/sleep/sleep.c
b/src/sleep/sleep.c
index dc1d55d8b08c1b131c8f406c25f439ca8f9c3943..4b402abcd1cdcf880b152306798620ff1c48a326 100644
(file)
--- a/
src/sleep/sleep.c
+++ b/
src/sleep/sleep.c
@@
-25,6
+25,7
@@
#include "sd-messages.h"
#include "def.h"
#include "sd-messages.h"
#include "def.h"
+#include "exec-util.h"
#include "fd-util.h"
#include "fileio.h"
//#include "log.h"
#include "fd-util.h"
#include "fileio.h"
//#include "log.h"
@@
-109,10
+110,10
@@
static int execute(char **modes, char **states) {
if (r < 0)
return r;
if (r < 0)
return r;
- execute_directories(dirs, DEFAULT_TIMEOUT_USEC, arguments);
+ execute_directories(dirs, DEFAULT_TIMEOUT_USEC,
NULL, NULL,
arguments);
log_struct(LOG_INFO,
log_struct(LOG_INFO,
-
LOG_MESSAGE_ID(SD_MESSAGE_SLEEP_START)
,
+
"MESSAGE_ID=" SD_MESSAGE_SLEEP_START_STR
,
LOG_MESSAGE("Suspending system..."),
"SLEEP=%s", arg_verb,
NULL);
LOG_MESSAGE("Suspending system..."),
"SLEEP=%s", arg_verb,
NULL);
@@
-122,13
+123,13
@@
static int execute(char **modes, char **states) {
return r;
log_struct(LOG_INFO,
return r;
log_struct(LOG_INFO,
-
LOG_MESSAGE_ID(SD_MESSAGE_SLEEP_STOP)
,
+
"MESSAGE_ID=" SD_MESSAGE_SLEEP_STOP_STR
,
LOG_MESSAGE("System resumed."),
"SLEEP=%s", arg_verb,
NULL);
arguments[1] = (char*) "post";
LOG_MESSAGE("System resumed."),
"SLEEP=%s", arg_verb,
NULL);
arguments[1] = (char*) "post";
- execute_directories(dirs, DEFAULT_TIMEOUT_USEC, arguments);
+ execute_directories(dirs, DEFAULT_TIMEOUT_USEC,
NULL, NULL,
arguments);
return r;
}
return r;
}