diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-18 03:20:47 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-18 03:20:47 -0500 |
commit | 3b1bdfbd2687e81bef85260f9cdfbf617ece3527 (patch) | |
tree | 93f2c45e6e616ab63e5fb21f4d2a740d8b9b05e2 /sd_daemon/lsb/exit-status.go | |
parent | eb6e8a6ca87879a6ca85788fcf6d3bf8848088e6 (diff) |
Implement almost all of sd-daemon. BREAKING CHANGES.v0.2.0
This does not include the sd_is_* utility functions.
BREAKING CHANGES:
- The import name is now "sd_daemon" instead of "sd".
- The logger interface is now entirely different.
- Notify now takes more arguments.
Diffstat (limited to 'sd_daemon/lsb/exit-status.go')
-rw-r--r-- | sd_daemon/lsb/exit-status.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sd_daemon/lsb/exit-status.go b/sd_daemon/lsb/exit-status.go index 14e2128..fbbb5e3 100644 --- a/sd_daemon/lsb/exit-status.go +++ b/sd_daemon/lsb/exit-status.go @@ -1,4 +1,4 @@ -// Copyright 2015 Luke Shumaker +// Copyright 2015-2016 Luke Shumaker // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ package lsb import ( + "fmt" "os" - "lukeshu.com/git/go/libsystemd.git/sd_daemon/logger" + "lukeshu.com/git/go/libsystemd.git/sd_daemon" ) // systemd daemon(7) recommends using the exit codes defined in the @@ -87,7 +88,7 @@ const ( // panic. func Recover() { if r := recover(); r != nil { - logger.Err("panic: %v", r) + sd_daemon.Log.Err(fmt.Sprintf("panic: %v", r)) os.Exit(int(EXIT_FAILURE)) } } |