From 3b1bdfbd2687e81bef85260f9cdfbf617ece3527 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 18 Dec 2016 03:20:47 -0500 Subject: Implement almost all of sd-daemon. BREAKING CHANGES. 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. --- sd_daemon/lsb/exit-status.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sd_daemon/lsb/exit-status.go') 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)) } } -- cgit v1.2.3