kumquat-buildroot/package/at/S99at
Giulio Benetti dc172396fb at: change upstream site, bump version
At is now available on a git repository at:
https://salsa.debian.org/debian/at

Main changes 3.1.16 -> 3.1.23:
- add support for SELinux, multiple files
- improve atd.service, see bug report 892819
- fix various bugs and warnings
- finalized script to release software

So:
- change AT_SITE_METHOD to git pointing to release/3.1.23
- update tarball sha256 in hash file
- improved S99at script:
  if /var/spool is linked to /tmp, .SEQ file will be lost and atd won't
  work neither for a live session. Create .SEQ file if not found, warning
  during start that after reboot atjobs could be lost.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-09-23 23:23:08 +02:00

48 lines
848 B
Bash
Executable File

#!/bin/sh
#
# Starts at daemon
#
umask 077
start() {
# Since /var/spool can be linked to /tmp (tmpfs)
# /var/spool/cron/atjobs/.SEQ created could be not available
# Check if not exists otherwise create it
if [ ! -f /var/spool/cron/atjobs/.SEQ ]; then
mkdir -p /var/spool/cron/atjobs/
touch /var/spool/cron/atjobs/.SEQ
printf "atd: created missing .SEQ file (atjobs will be lost on reboot)\n"
fi
printf "Starting atd: "
start-stop-daemon --start --quiet --make-pidfile --pidfile /var/run/atd.pid --background --exec /usr/sbin/atd -- -f
echo "OK"
}
stop() {
printf "Stopping atd: "
start-stop-daemon --stop --quiet --pidfile /var/run/atd.pid
echo "OK"
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?