-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does the wrong thing with /etc/cron.d/zfs-auto-snapshot #20
Comments
Here's a first, fugly patch to run entries in /etc/cron.d as their own user.
which is still there. The biggest problem (other than esthetics) is that debug messages assume that all files Also, while unrelated, there's an indentation warning (-Wmisleading-indentation) in database.c, could you look at it? It looks like a genuine bug to me.
|
In the same spirit as your patch, I propose some changes in #30 |
$ cat /etc/cron.d/zfs-auto-snapshot
git clone, make, ./crond -f
root also gets an email saying "/bin/sh: 1: root: not found"
This is from a linux distro (voidlinux fyi); I don't know if the dragonflybsd convention is different,
but here at least files in /etc/cron.d are supposed to be that way (see eg http://deb.debian.org/debian/pool/main/a/anacron/anacron_2.3-27.debian.tar.xz),
ie the first field after the time specification is a username to run the command as,
and lines like "foo=bar" mean environment assignment
(the one above looks pointless to me, and I'm not sure if any other cron implementation gets confused by the quotes; I'm assuming they are ok since https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=zfs-auto-snapshot;dist=unstable doesn't say anything)
If there's any more info or anything you need please do let me know.
The text was updated successfully, but these errors were encountered: