Hello community, here is the log from the commit of package ghc-hdaemonize for openSUSE:Factory checked in at 2017-06-04 01:57:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-hdaemonize (Old) and /work/SRC/openSUSE:Factory/.ghc-hdaemonize.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-hdaemonize" Sun Jun 4 01:57:35 2017 rev:3 rq:499703 version:0.5.3 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-hdaemonize/ghc-hdaemonize.changes 2017-04-11 09:37:40.984480852 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-hdaemonize.new/ghc-hdaemonize.changes 2017-06-04 01:57:36.175069994 +0200 @@ -1,0 +2,5 @@ +Thu May 18 09:52:27 UTC 2017 - [email protected] + +- Update to version 0.5.3 with cabal2obs. + +------------------------------------------------------------------- Old: ---- hdaemonize-0.5.2.tar.gz New: ---- hdaemonize-0.5.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-hdaemonize.spec ++++++ --- /var/tmp/diff_new_pack.nse7U1/_old 2017-06-04 01:57:36.742989761 +0200 +++ /var/tmp/diff_new_pack.nse7U1/_new 2017-06-04 01:57:36.746989196 +0200 @@ -18,7 +18,7 @@ %global pkg_name hdaemonize Name: ghc-%{pkg_name} -Version: 0.5.2 +Version: 0.5.3 Release: 0 Summary: Library to handle the details of writing daemons for UNIX License: BSD-3-Clause @@ -73,6 +73,6 @@ %files devel -f %{name}-devel.files %defattr(-,root,root,-) -%doc README +%doc README.md %changelog ++++++ hdaemonize-0.5.2.tar.gz -> hdaemonize-0.5.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hdaemonize-0.5.2/README new/hdaemonize-0.5.3/README --- old/hdaemonize-0.5.2/README 2016-07-21 21:32:20.000000000 +0200 +++ new/hdaemonize-0.5.3/README 1970-01-01 01:00:00.000000000 +0100 @@ -1,97 +0,0 @@ -`hdaemonize` -================= - -`hdaemonize` is a simple library that hides some of the complexities -of writing UNIX daemons in Haskell. - -Obtaining ------------ - -The latest version is available (BSD license) at -[GitHub](https://github.com/greydot/hdaemonize). - -Using -------- - -The synopsis is: - - import System.Posix.Daemonize - main = daemonize $ program - -This code will make `program` do what good daemons should do, that is, -detach from the terminal, close file descriptors, create a new process -group, and so on. - -If you want more functionality than that, it is available as a -`serviced` function. - -Here is an example: - - import Control.Concurrent - import System.Posix.Daemonize - - loop i log = do threadDelay $ 10^6 - log (show i) - writeFile "/tmp/counter" $ show i - if i == 5 then undefined else loop (i + 1) log - - main = serviced (loop 0) - -Let us say this program is compiled as `mydaemon`. Then: - - # mydaemon start - -starts the service. A second call to start will complain that the -program is already running. - -During its execution, mydaemon will simply write a new number to -`/tmp/counter` every second, until it reaches 5. Then, an exception -will be thrown. This exception will be caught by `hdaemonize`, and -logged to `/var/log/daemon.log` or similar (this is depends on how -`syslog` works on your platorm). `log (show i)` will leave messages -in the same file. - -When the exception is thrown, the program will be restared in 5 -seconds, and will start counting from 0 again. - -The following commands are also made available: - - # mydaemon stop - # mydaemon restart - -Finally, `mydaemon` drops privileges. By default it changes the -effective user and group ids to those of the `daemon` user, but it -prefers to use those of `mydaemon`, if present. - - -Changelog ---------- - -* 0.5.2 - * Fix pre-AMP builds. - -* 0.5.1 - * Updated to use hsyslog >=4 - -* 0.4 - * added support for a privileged action before dropping privileges - -* 0.3 - * merged with updates by madhadron - -* 0.2 - * provided documentation - * backported to older GHC versions, tested on 6.8.1 - -* 0.1 - * initial public release - - -Authors -------- - -Anton Tayanovskyy <[email protected]>, bug reports and feature -requests welcome. - -The code is originally based on a public posting by -[Andre Nathan](http://sneakymustard.com/), used by permission. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hdaemonize-0.5.2/README.md new/hdaemonize-0.5.3/README.md --- old/hdaemonize-0.5.2/README.md 1970-01-01 01:00:00.000000000 +0100 +++ new/hdaemonize-0.5.3/README.md 2017-05-14 11:07:37.000000000 +0200 @@ -0,0 +1,98 @@ +`hdaemonize` +================= +[](https://travis-ci.org/greydot/hdaemonize) + +`hdaemonize` is a simple library that hides some of the complexities +of writing UNIX daemons in Haskell. + +Obtaining +----------- + +The latest version is available (BSD license) at +[GitHub](https://github.com/greydot/hdaemonize). + +Using +------- + +The synopsis is: + + import System.Posix.Daemonize + main = daemonize $ program + +This code will make `program` do what good daemons should do, that is, +detach from the terminal, close file descriptors, create a new process +group, and so on. + +If you want more functionality than that, it is available as a +`serviced` function. + +Here is an example: + + import Control.Concurrent + import System.Posix.Daemonize + + loop i log = do threadDelay $ 10^6 + log (show i) + writeFile "/tmp/counter" $ show i + if i == 5 then undefined else loop (i + 1) log + + main = serviced (loop 0) + +Let us say this program is compiled as `mydaemon`. Then: + + # mydaemon start + +starts the service. A second call to start will complain that the +program is already running. + +During its execution, mydaemon will simply write a new number to +`/tmp/counter` every second, until it reaches 5. Then, an exception +will be thrown. This exception will be caught by `hdaemonize`, and +logged to `/var/log/daemon.log` or similar (this is depends on how +`syslog` works on your platorm). `log (show i)` will leave messages +in the same file. + +When the exception is thrown, the program will be restared in 5 +seconds, and will start counting from 0 again. + +The following commands are also made available: + + # mydaemon stop + # mydaemon restart + +Finally, `mydaemon` drops privileges. By default it changes the +effective user and group ids to those of the `daemon` user, but it +prefers to use those of `mydaemon`, if present. + + +Changelog +--------- + +* 0.5.2 + * Fix pre-AMP builds. + +* 0.5.1 + * Updated to use hsyslog >=4 + +* 0.4 + * added support for a privileged action before dropping privileges + +* 0.3 + * merged with updates by madhadron + +* 0.2 + * provided documentation + * backported to older GHC versions, tested on 6.8.1 + +* 0.1 + * initial public release + + +Authors +------- +Lana Black <[email protected]> + +Anton Tayanovskyy <[email protected]>. + +The code is originally based on a public posting by +[Andre Nathan](http://sneakymustard.com/), used by permission. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hdaemonize-0.5.2/System/Posix/Daemonize.hs new/hdaemonize-0.5.3/System/Posix/Daemonize.hs --- old/hdaemonize-0.5.2/System/Posix/Daemonize.hs 2016-07-21 21:32:20.000000000 +0200 +++ new/hdaemonize-0.5.3/System/Posix/Daemonize.hs 2017-05-14 11:07:37.000000000 +0200 @@ -1,6 +1,5 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} -{-# LANGUAGE RankNTypes #-} module System.Posix.Daemonize ( -- * Simple daemonization daemonize, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hdaemonize-0.5.2/hdaemonize.cabal new/hdaemonize-0.5.3/hdaemonize.cabal --- old/hdaemonize-0.5.2/hdaemonize.cabal 2016-07-21 21:32:20.000000000 +0200 +++ new/hdaemonize-0.5.3/hdaemonize.cabal 2017-05-14 11:07:37.000000000 +0200 @@ -1,5 +1,5 @@ Name: hdaemonize -Version: 0.5.2 +Version: 0.5.3 Cabal-Version: >= 1.6 License: BSD3 License-file: LICENSE @@ -10,17 +10,18 @@ Synopsis: Library to handle the details of writing daemons for UNIX Description: Provides two functions that help writing better UNIX daemons, daemonize and serviced: daemonize does what a daemon should do - (forking and closing descriptors), while serviced does that and - more (syslog interface, PID file writing, start-stop-restart + (forking and closing descriptors), while serviced does that and + more (syslog interface, PID file writing, start-stop-restart command line handling, dropping privileges). Build-Type: Simple -Extra-Source-Files: README +Extra-Source-Files: README.md +Tested-With: GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1 Library Build-Depends: base >= 4 && < 5 , bytestring , unix - , hsyslog >= 4 + , hsyslog == 4 , extensible-exceptions , filepath , mtl @@ -29,3 +30,7 @@ Ghc-Options: -Wall -fno-warn-unused-do-bind -fno-warn-type-defaults -fno-warn-name-shadowing else Ghc-Options: -Wall -fno-warn-type-defaults -fno-warn-name-shadowing + +source-repository head + type: git + location: https://github.com/greydot/hdaemonize.git
