Tiny Core Extensions > TCE Q&A Forum
at scheduler errors
wysiwyg:
Good afternoon all, I've noticed several problems with the 'at' scheduler in both the Intel 32 and 64 bit extensions. First, both require the flex.tcz dependency. Secondly we need to add some additional lines to the /usr/local/tce.installed/atd file:
...snip...
--- Code: ---if [ ! -d /var/at/atjobs ]; then
mkdir -p /var/at/atjobs
chown root:staff /var/at/atjobs
chmod 775 /var/at/atjobs
fi
if [ ! -d /var/at/atspool ]; then
mkdir -p /var/at/atspool
chown root:staff /var/at/atspool
chmod 775 /var/at/atspool
fi
if [ ! -e /var/at/atjobs/.SEQ ]; then
touch /var/at/atjobs/.SEQ
chown root:staff /var/at/atjobs/.SEQ
chmod 660 /var/at/atjobs/.SEQ
fi
--- End code ---
...snip...
There is also a missing /usr/local/etc/init.d/atd script:
--- Code: ---#!/bin/sh
case $1 in
start) atd ;;
stop) kill $(pidof atd) ;;
restart)
$0 stop
$0 start
;;
*) echo "Usage $0: {start|stop|restart} ;;
esac
--- End code ---
Lastly, even with these changes I still can't seem to have scheduled tasks run. I'm getting an error "Can't signal atd (permission denied)", but have no clue why. Any thoughts?
Thanks,
Dave
[EDIT]: Added code tags. Rich
wysiwyg:
Update: starting atd with your user account makes everything work as designed, but this will not work in a multi-user system. I've tried to start the daemon like:
su nobody -s /bin/sh -c /usr/local/sbin/atd
but it will not start...
Dave
wysiwyg:
@juanito what account was used to run the software with during compilation? Is there a compile script that I can download?
Thanks,
Dave
wysiwyg:
--- Quote from: wysiwyg on October 27, 2016, 07:12:51 AM ---@juanito what account was used to run the software with during compilation? Is there a compile script that I can download?
--- End quote ---
Or more precisely, what account and group did you list in the configure script? By default it uses 'daemon' for both, which is not a valid account in TC.
Dave
Misalf:
Like these compile scripts?
http://tinycorelinux.net/7.x/x86/tcz/src/at/compile_at
http://tinycorelinux.net/7.x/x86_64/tcz/src/at/compile_at
Navigation
[0] Message Index
[#] Next page
Go to full version