2025-07-02  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.26 released.

	* emacs.rc (depend): Drop localmount and bootmisc, as they are
	boot services.

	* emacs.rc (start, stop): Removed; use start-stop-daemon's default
	functions instead.
	(command, command_args, command_background, command_user)
	(directory, pidfile, retry): Define variables expected by them.
	(pidfile): Use the standard location. Now that the pid file is
	owned by root, we no longer need a user-writable subdirectory.

2025-06-28  Ulrich Müller  <ulm@gentoo.org>

	* emacs.rc (start_pre): POSIX shell does not support "local".
	(start): Ditto. Drop the intermediate variable because s-s-d
	itself can expand the tilde.

2025-03-14  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.25 released.

	* emacs.rc (start_pre): New function, replaces checkconfig.
	Fix checkpath call; the directory should belong to the superuser.
	(start): Remove call to checkconfig.

2025-03-09  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.24 released.

	* emacs-wrapper.sh:
	* 10emacs-daemon-gentoo.el: Files removed. These have been moved
	to the emacs-common package.
	* Makefile (DISTFILES): Updated.

2025-03-07  Ulrich Müller  <ulm@gentoo.org>

	* emacs.rc (checkconfig): Make running Emacs more robust.
	Taken from elisp-common.eclass.

2025-03-05  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.23 released.

	* emacs.rc (EMACS_OPTS): Use --fg-daemon instead of --daemon.
	(EMACSCLIENT): Remove.
	(start, stop): Don't export EMACS_DEBUG, EMACSCLIENT and
	EMACSCLIENT_OPTS.
	(start): Call start-stop-daemon with options --background and
	--make-pidfile. Unset XDG_RUNTIME_DIR because it points to the
	directory of the superuser and is not writable for us.
	* emacs.conf: Update accordingly.
	* emacs-wrapper.sh: Simplify; keep only the login shell wrapper.
	* 10emacs-daemon-gentoo.el: Don't write the pid file, as this is
	now handled by OpenRC's start-stop-daemon command.

	* emacs.rc (checkconfig): Remove obsolete test for baselayout-1.
	* emacs-stop.sh: Remove example script.
	* 10emacs-daemon-gentoo.el: Sharp-quote function name.
	Remove redundant check for daemonp being bound.
	* Makefile (DISTFILES): Drop emacs-stop.sh.

2016-06-08  Ulrich Müller  <ulm@gentoo.org>

	* README: Update URL and e-mail address of project.

2016-05-06  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.22 released.

	* emacs.rc: Update shebang line to /sbin/openrc-run which is used
	by new OpenRC versions.

2014-02-02  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.21 released.

2013-08-06  Ulrich Müller  <ulm@gentoo.org>

	* emacs-stop.sh: New variable EMACSCLIENT_OPTS, allows to specify
	additional options for emacsclient.
	* emacs.rc (stop): Export EMACSCLIENT_OPTS to environment.
	* emacs.conf: Add explanation for new variable.

2013-03-23  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.20 released.

	* Makefile (dist): Use xz for compression.
	(clean): Remove *.xz.

	* emacs.rc (stop): Specify retry schedule for start-stop-daemon:
	Send SIGTERM, wait for EMACS_TIMEOUT, then send SIGKILL.

2012-07-21  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.19 released.

2011-12-10  Ulrich Müller  <ulm@gentoo.org>

	* emacs.rc (checkconfig, start): Drop baselayout-1 compatibility.

2010-09-20  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.18 released.

2010-09-18  Ulrich Müller  <ulm@gentoo.org>

	* emacs.rc (stop): Output ebegin/eend messages. Export some
	variables before calling the stop script, bug 337829.
	* emacs-stop.sh: New file, example stop script.
	* Makefile (DISTFILES): Add emacs-stop.sh.

2009-11-20  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.17 released.

2009-10-05  Ulrich Müller  <ulm@gentoo.org>

	* emacs-wrapper.sh: Always display the saved output if the
	EMACS_DEBUG variable is set.
	* emacs.rc (start): Export EMACS_DEBUG.
	* emacs.conf (EMACS_DEBUG): Document variable.

2009-09-19  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.16 released.

	* emacs-wrapper.sh: Save Emacs's output in a temporary file.
	Display it only in case of error.

2009-07-17  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.15 released.

	* emacs.rc (USER): Initialise from SVCNAME instead of RC_SVCNAME,
	in order to be compatible with baselayout-1. OpenRC defines both.
	(start): Test for OpenRC. Compatibility code for start-stop-daemon
	of baselayout-1.

2009-03-18  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.14 released.

	* emacs.rc (start): Initialise SHELL variable from EMACS_SHELL;
	use information from the passwd file as fallback.
	(EMACS_SHELL): Default to bash.
	* emacs.conf (EMACS_SHELL): Renamed from SHELL.

2009-03-03  Ulrich Müller  <ulm@gentoo.org>

	* 10emacs-daemon-gentoo.el: Remove backwards compatibility code.

2009-02-25  Ulrich Müller  <ulm@gentoo.org>

	* emacs.rc (start): Export the SHELL variable.
	* emacs-wrapper.sh: Don't assign SHELL.

2009-02-23  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.13 released.

	* 10emacs-daemon-gentoo.el: Rename "system-process-attributes"
	to "process-attributes" following Emacs upstream. Add code for
	backwards compatibility.

2009-02-01  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.12 released.

2009-01-28  Ulrich Müller  <ulm@gentoo.org>

	* emacs.rc (depend): Add dependencies, in order to start after the
	D-Bus daemon. Thanks to Tassilo Horn <tassilo@member.fsf.org> for
	pointing this out. Also depend on localmount and bootmisc.

2009-01-21  Ulrich Müller  <ulm@gentoo.org>

	* emacs.rc: Use different syntax for assignment of default values.
	(EMACS_OPTS, start): Include --daemon option in variable.
	* emacs.conf (EMACS_OPTS): Document the above.

2009-01-14  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.11 released.

2009-01-04  Christian Faulhammer  <fauli@gentoo.org>

	* emacs.rc (start): Make a minor text addition to start message

2009-01-02  Ulrich Müller  <ulm@gentoo.org>

	* emacs.rc (stop): Optionally call a custom script defined by
	EMACS_STOP before stopping the daemon; bug 246462.
	* emacs.conf (EMACS_STOP): Document as a variable.

2009-01-01  Ulrich Müller  <ulm@gentoo.org>

	* README: Some additions. List authors.

2008-12-31  Christian Faulhammer  <fauli@gentoo.org>

	* README: Add little user guide how to use the emacs-daemon script

	* Makefile (DISTFILES): Put it into the tarball

2008-12-27  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.10 released.

2008-12-24  Ulrich Müller  <ulm@gentoo.org>

	* emacs-wrapper.sh: Use a "for" loop to time out. Remove redundant
	argument of "exit".

	* emacs.rc (start): Move ebegin message.

2008-12-19  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.9 released.

2008-12-17  Ulrich Müller  <ulm@gentoo.org>

	* emacs-wrapper.sh: Use "wait" for exit status of child process,
	and exit with it. Change order of killed processes on timeout.

2008-12-12  Ulrich Müller  <ulm@gentoo.org>

	* 10emacs-daemon-gentoo.el: Use string-match for the command name.

2008-12-08  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.8 released.

2008-12-07  Ulrich Müller  <ulm@gentoo.org>

	* emacs.rc (start): If unset, determine SHELL from passwd file.
	* emacs.conf (SHELL): Document variable.
	(EMACS_TIMEOUT): Increase default to 30 seconds on user's request.

	* emacs-wrapper.sh: Add copyright header.

2008-12-05  Ulrich Müller  <ulm@gentoo.org>

	* emacs-wrapper.sh: Add a timeout and kill Emacs if the daemon
	doesn't detach properly.
	* emacs.rc (start): Always call Emacs via the wrapper script.
	* emacs.conf (EMACS_START): Update documentation.
	(EMACS_TIMEOUT): New variable.

2008-12-03  Ulrich Müller  <ulm@gentoo.org>

	* emacs.rc (checkconfig): Use numerical user id for root.

2008-11-30  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.7 released.

2008-11-16  Ulrich Müller  <ulm@gentoo.org>

	* emacs.rc (checkconfig): Use "checkpath" builtin function.

2008-11-13  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.6 released.

	* emacs.rc (start): Allow for a wrapper script specified by
	variable EMACS_START. Thanks to Tassilo Horn, bug 246460.
	* emacs.conf (EMACS_START): Document as a variable.
	* emacs-wrapper.sh: New file.
	* Makefile (DISTFILES): Add emacs-wrapper.sh.

	* emacs.conf: Add a comment about multiplexed configuration files.

2008-11-10  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.5 released.

	* emacs.conf: New file.
	* emacs.rc (EMACS): Allow to override from config file.
	* Makefile (DISTFILES): Add emacs.conf.

2008-11-04  Ulrich Müller  <ulm@gentoo.org>

	* emacs.rc (description): Add description.

	* 10emacs-daemon-gentoo.el (special-event-map): Restart the server
	on reception of SIGUSR1. Output a message before terminating.

2008-11-03  Ulrich Müller  <ulm@gentoo.org>

	* 10emacs-daemon-gentoo.el: Check if a daemon is already running.

2008-11-02  Ulrich Müller  <ulm@gentoo.org>

	* Version 0.4 released.

	* emacs.rc, 10emacs-daemon-gentoo.el, Makefile: New files.

Distributed under the terms of the GNU General Public License v2 or later
