Accepting request 183122 from Base:System

- No http://0pointer.de/public/systemd-units/atd.service anymore

- 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/183122
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/at?expand=0&rev=54
This commit is contained in:
Stephan Kulow
2013-07-16 12:06:38 +00:00
committed by Git OBS Bridge
4 changed files with 32 additions and 4 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,19 @@
-------------------------------------------------------------------
Mon Jul 15 13:50:37 UTC 2013 - werner@suse.de
- No http://0pointer.de/public/systemd-units/atd.service anymore
-------------------------------------------------------------------
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

@@ -34,7 +34,7 @@ Source1: atd.init
Source2: atd.pamd
Source3: sysconfig.atd
Source4: at.sleep
Source5: http://0pointer.de/public/systemd-units/atd.service
Source5: atd.service
Patch0: %{name}-3.1.13.patch
Patch4: %{name}-3.1.13-joblist.patch
Patch5: %{name}-3.1.13-selinux.patch
@@ -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