FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › Feature Requests › Timed scanning…
- This topic has 16 replies, 6 voices, and was last updated 17 years, 2 months ago by Dave.B.
-
AuthorPosts
-
28/01/2007 at 10:52 PM #7504Dave.BParticipant
Thanks M@rk for the sanity check.
I suspect Fizze was only trying to catch me out so that I did some reading around, and it worked.
I’ve verified that the command part works, so I’ll go ahead and add the line to /etc/crontabWhile I’m here: what’s the difference between adding it to:
/etc/crontab ;
and adding it to:
/opt/etc/crontab?
Does the former run at user level (root) and the latter at system level? If so, which is preferable? And why?28/01/2007 at 11:49 PM #7505masParticipant/etc is where the crond looks that comes with unslung automatically. Yes you dont have to do an ipkd install cron.
if you install that cron extra it should look in /opt/etc/ though.
Look at the other entries in the crontab. The crontab entries should actually also have an extra field for the username it shall run as!
29/01/2007 at 12:10 PM #7506Dave.BParticipantMas,
That probably explains why Firefly was not responding this morning. I assume the command ran at 5am this morning, but without the user field it got a bit stuck.
I’ll restart when I get home and fix that.
There are 3 other commands in my crontab file – they all run as root so I take it this one should too?29/01/2007 at 3:39 PM #7507fizzeParticipantno!
they should run as the user that is specified in mt-daapd.conf file, the user mt-daapd runs as.29/01/2007 at 6:21 PM #7508Dave.BParticipantFizze, when you say “they”, do you mean the lines already there, which I haven’t changed in any way, or do you mean new lines that I add?
If the latter, then…
0 5 * * * guest /opt/bin/wget http://user:password@server:port/config-update.html?action=rescan
would seemingly do the job, right?
29/01/2007 at 7:09 PM #7509masParticipantIt should not matter which user it runs as. After all it needs no special rights to use wget to access a webpage (the password is coded in the link). So use nobody or whatever low right account you have there. Guest will also do if it can run wget and is a valid account.
29/01/2007 at 7:16 PM #7510Dave.BParticipantHmmm… Well guest is an account, as that is what is specified in mt-daapd.conf for Firefly to run as. I have no idea what the password is though so I can’t log in to check whether wget works in the guest account.
Is there any particular reason why I don’t want to run it as root?Thanks for your time.
-
AuthorPosts
- The forum ‘Feature Requests’ is closed to new topics and replies.