After some research, it looks like Ubuntu Server v15 switched to "systemd" to manage services. So my upstart script wasn't working anymore. After toying around, I came up with the following nzbget systemd unit: (Named "nzbget.service") [Unit] Description=NZBGet Service [Service] Type=forking ExecSta...
I have the following upstart script in Ubuntu 15 for nzbget: description "NZBGet upstart script" setuid robert setgid robert start on runlevel [2345] stop on runlevel [016] respawn expect fork script exec nzbget -D end script pre-stop script exec nzbget -Q end script This used to work fine in Ubuntu...
For the start I've moved pp-scripts to GitHub. The new GitHub's home for NZBGet related stuff: https://github.com/nzbget. Thanks, this is really good news! I have some recommendations: Setup a .gitattributes file for each of your repositories, and normalize line endings as needed. There is a guide ...
I am happy to transfer ownership of this to you hugbug should you be interested in it. Otherwise, I will keep this updated as I can for easy upgrading of the videosort script on my server.
This seems really fragile. Is there no way to make operations more atomic to avoid corruption, or perhaps create copies prior to writing or something of that nature? The operations are atomic and copies are written too. The problem is the OS reports success and nzbget deletes old files. If in that ...
EDIT: Here is my upstart script that does the backup. So far this is working. description "NZBGet upstart script" setuid robert setgid robert start on runlevel [2345] stop on runlevel [016] respawn expect fork pre-start script cd /home/robert/nzbget exec tar -cvzf queue-$(date +%Y%m%d_%H%M%S).tar.gz...
I don't see any other errors. The stat and queue files are both empty when I cat them.
This seems really fragile. Is there no way to make operations more atomic to avoid corruption, or perhaps create copies prior to writing or something of that nature?