Accepting request 182951 from home:elvigia:branches:Base:System

- systemd: start as non-forking service 
- systemd: start after systemd-user-sessions.service

- Use /run not /var/run to store the pid file

OBS-URL: https://build.opensuse.org/request/show/182951
OBS-URL: https://build.opensuse.org/package/show/Base:System/at?expand=0&rev=65
This commit is contained in:
Dr. Werner Fink 2013-07-13 20:40:31 +00:00 committed by Git OBS Bridge
parent cb2d49fe74
commit 99983ff6a6
4 changed files with 26 additions and 3 deletions

10
at-piddir.patch Normal file
View File

@ -0,0 +1,10 @@
--- configure.ac.orig
+++ configure.ac
@@ -136,6 +136,7 @@ elif test -d /usr/run ; then
else
PIDDIR="$ETCDIR"
fi
+PIDDIR=/run
AC_DEFINE_UNQUOTED(PIDFILE, "$PIDDIR/atd.pid", [What is the name of our PID file?])
AC_MSG_RESULT($PIDDIR)

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sat Jul 13 00:09:02 UTC 2013 - crrodriguez@opensuse.org
- systemd: start as non-forking service
- systemd: start after systemd-user-sessions.service
-------------------------------------------------------------------
Sat Jul 13 00:05:41 UTC 2013 - crrodriguez@opensuse.org
- Use /run not /var/run to store the pid file
-------------------------------------------------------------------
Thu Jun 20 01:52:46 UTC 2013 - crrodriguez@opensuse.org

View File

@ -59,6 +59,8 @@ Patch19: %{name}-3.1.8-jobdir-mtime.patch
Patch20: at-parse-suse-sysconfig.patch
#PATCH-FIX-UPSTREAM fix makefile dependencies
Patch21: at-makefile-deps.patch
#PATCH-FIX-OPENSUSE Set pid dir to /run not /var/run
Patch22: at-piddir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %{_sbindir}/useradd %{_sbindir}/groupadd %fillup_prereq %insserv_prereq
PreReq: permissions
@ -93,7 +95,7 @@ This program allows you to run jobs at specified times.
%patch19
%patch20 -p1
%patch21 -p1
%patch22
%build
rm -fv y.tab.c y.tab.h lex.yy.c lex.yy.o y.tab.o
autoreconf -fiv

View File

@ -1,9 +1,9 @@
[Unit]
Description=Execution Queue Daemon
After=systemd-user-sessions.service
[Service]
ExecStart=/usr/sbin/atd
Type=forking
ExecStart=/usr/sbin/atd -f
[Install]
WantedBy=multi-user.target