Apologies for my n00bishness, getting back into Linux after a long time away. I was previously using DD-WRT but wanted a bit more flexibility on my Archer C7 v2s to do things like run Transmission Daemon and miniDLNA. (DD did the DLNA well, but the build for my particular model of router kept throwing roadblocks in my face, and had a bunch of features like VPN that I have no use for).
I've got the services running the way I want but when I copy files into the DLNA media folders they are not automatically discovered. I've read some forum articles for other versions of miniDLNA that give some ideas but nothing seems to work.
Since I'm manually copying files from one folder into the media folder, what I would like to do is make a simple bash script to do the following:
#I'll add a chmod/chown here to make sure any newly copied files match the ownership/permissions of the rest of the folder
service minidlna stop
service minidlna start
When I attempt to run said script I get the following error:
./rescandb.sh: line 3: service: not found
./rescandb.sh: line 5: service: not found
I'm sure I'm just missing something basic, but any help would be largely appreciated. I have a crap memory and it's less effective for me to remember the sytax for stopping services etc every time I add new media.